note 32117 rejected from function.ereg-replace by didou

From: Date: Sat, 17 May 2003 18:57:55 +0000
Subject: note 32117 rejected from function.ereg-replace by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-48210@lists.php.net to get a copy of this message
Note Submitter: peder@riceiportal.com I have a situation as follows: $variable = ereg_replace("TEXT", addLink($oneVariable), $otherVariable); In this example, I have a function being called to replace my text. Is the function called each (1) once, and the same data used every time PHP finds a match, (2) every time a match is found, or (3) never if no match is found?

« previous php.notes (#48210) next »