Re: preg_match

From: Date: Fri, 05 Dec 2003 13:19:48 +0000
Subject: Re: preg_match
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-171980@lists.php.net to get a copy of this message
pete M wrote:
could someone explain what this bit of code does please... if (!preg_match("/^".$thumbname."/",$item))
Determines if $item begins with $thumbname. Same as, but probably slower than this: if(substr($item,0,strlen($thumbname)) == $thumbname) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#171980) next »