note 99096 deleted from function.substr by danbrown

From: Date: Fri, 30 Jul 2010 16:41:29 +0000
Subject: note 99096 deleted from function.substr by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-171265@lists.php.net to get a copy of this message
Note Submitter: sb (at) bit-house (dot) com ---- @jeff dot swain at pcmmllc dot com What the hell did you smoke? $whereClause = substr($merge, strpos($merge,'WHERE', (strlen($merge) - strpos($merge,'WHERE')))); if strpos($merge,'WHERE') < strlen($merge)/2 than the first strpos will return FALSE and be interpreted as 0, thus substr($merge,0) === $merge. just do $whereClause = substr($merge, strpos($merge,'WHERE'));

« previous php.notes (#171265) next »