📜  php代码示例中的clean函数

📅  最后修改于: 2022-03-11 14:53:53.481000             🧑  作者: Mango

代码示例1
/*** clean FUNCTION IN PHP
PHP provides functions that help to clean up strings by removing
unwanted whitespace or other characters from the beginning and/or
end of the string: trim , rtrim , and ltrim.
***/

Example
clean($request->description)
  
/*** strip_tags FUNCTION IN PHP
PHP also provides another type of cleanup function: strip_tags
which removes HTML and PHP tags from strings.
***/