英[strɪp] 美[strɪp]
vi. Strip naked; perform a striptease; strip off
vt. Remove, strip off; deprive; delete; clear, dismantle
n. Strip, strip; strip (or forest, lake, etc.); (football player’s) sportswear
Third person singular: strips Plural: strips Present participle: stripping Past tense : stripped past participle: stripped
php strip_tags() function syntax
Function:Strip the HTML tags in the string
Syntax:strip_tags(string,allow)
Parameters:
Parameters | Description |
string | Required, Specifies the string to check. |
allow | Optional, specifies allowed tags. These tags will not be deleted. |
Description: Thestrip_tags() function strips HTML, XML and PHP tags from the string. This function always strips HTML comments. This cannot be changed via the allow parameter. This function is binary safe.
php strip_tags() function example
Output:
Hello world
hello php.cn"; $j = strip_tags($i,''); echo $j; ?>
Run Instance»
Click the "Run Instance" button to view the online instance
Output:
hello php.cn