clean function in php

Solutions on MaxInterview for clean function in php by the best coders in the world

showing results for - "clean function in php"
Andrea
12 Jun 2016
1/*** clean FUNCTION IN PHP
2PHP provides functions that help to clean up strings by removing
3unwanted whitespace or other characters from the beginning and/or
4end of the string: trim , rtrim , and ltrim.
5***/
6
7Example
8clean($request->description)
9  
10/*** strip_tags FUNCTION IN PHP
11PHP also provides another type of cleanup function: strip_tags
12which removes HTML and PHP tags from strings.
13***/