当前位置:网站首页>Learn to use the phpstripslush function to remove backslashes

Learn to use the phpstripslush function to remove backslashes

2022-06-24 10:18:00 Wandering in memory of Yu Fei

Learn to use phpstripslashe Function to remove backslashes

stripslashes() function

stripslashes() Function deleted by addslashes() Function to add backslashes .
Tips : This function can be used to clean up from the database or from HTML Data retrieved from the form .

grammar

stripslashes(string)

Parameters

string It's necessary . Specifies the string to check .

Return value : Returns a string stripped of backslashes .

example

Remove backslash :

<?php

echo stripslashes("Who\'s QIPA250 Gates?");

?>

Running results :

Who’s QIPA250 Gates?

原网站

版权声明
本文为[Wandering in memory of Yu Fei]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206240914529577.html