View Single Post
Old 06-10-2008, 12:26 PM   #2 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

The third argument (before_needle) is only available with PHP 5.3.0 and upward.

An equivalent snippet would be something like:
PHP Code:
$text2 = (FALSE !== ($pos strpos($text0'('))
       ? 
substr($text00$pos)
       : 
FALSE
Salathe is offline  
Reply With Quote
The Following User Says Thank You to Salathe For This Useful Post:
pipesportugal (06-11-2008)