Re: another REGEX question

From: Date: Fri, 03 Aug 2001 03:36:00 +0000
Subject: Re: another REGEX question
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-61080@lists.php.net to get a copy of this message
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 richard@zend.com address is an endangered species -- Use ceo@l-i-e.com 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

« previous php.general (#61080) next »