note 13565 rejected and deleted from function.ereg.php by zak

From: Date: Sat, 30 Jun 2001 07:26:31 +0000
Subject: note 13565 rejected and deleted from function.ereg.php by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-14807@lists.php.net to get a copy of this message
with PHP 3.0.12 (I know, old but the client Im working for wont upgrade for some odd reason, dont ask why), I ripped my hair out over a simple little problem: When using ereg(), you cannot use a variable variable as an input string. ex: if (ereg("[ONE|TWO]",${"some var name" . $someothervar})) { did not work at all. Even this doesnt work: $var = ${"somevarname" . $someothervar}; if (ereg("[ONE|TWO]",$var)) { php would not report any error (hell, it didnt respond at all), instead in IE I would get a Page Not Found error, in Netscape I get a "Document has no data" popup. Hope this helps.

« previous php.notes (#14807) next »