I am trying to learn how to avoid simple characters. I am printing an ASCII character>. But when I print it after using the addcslashes function .. nothing happens. Why is this?
$da=ord('>'); echo $da."<br/>"; $not_escaped="><?"; $escaped = addcslashes($not_escaped, "\61...\64"); echo $escaped;
I followed their documents ... but my example above does not work. Thye also uses 2 seperators! @ Between the range of the range of ASCII numbers. What does it mean?
$escaped = addcslashes($not_escaped, "\0..\37!@\177..\377");
string php
BlackFire27 Feb 18 '12 at 12:16 2012-02-18 12:16
source share