Y'all should also be aware that there is a http://php.net/strip_tags
function to rip out all the HTML tags except a select few you want to
allow...

> Preg functions are faster, though. And, if you're interested in
> little speed tweaks, use single quotes - ' - rather than double
> quotes - " - here. With double quotes, PHP searches the quoted string
> for variables or escape characters to replace.

Somebody measured this speed difference once, and I think the difference
came out to be so small that the inherent error in the measurement was
higher...

PHP still has to search 'string' for \' and \\, so I guess it just isn't
that different.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to