Page 1 of 1

specialchars function

Posted: Tue May 27, 2008 3:45 am
by lobuz
hi,

is there a php function to detect if string has specialchars in it?

saludos

Re: specialchars function

Posted: Tue May 27, 2008 6:24 am
by N1gel
There is a buit in html special characters function. It allows you to print these charcters in a string instead of them being html code.

Have a look in the PHP manual at htmlspecialchars