note 32117 added to function.ereg-replace

From: Date: Sat, 17 May 2003 18:53:42 +0000
Subject: note 32117 added to function.ereg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-48206@lists.php.net to get a copy of this message
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? -- http://www.php.net/manual/en/function.ereg-replace.php http://master.php.net/manage/user-notes.php?action=edit+32117 http://master.php.net/manage/user-notes.php?action=delete+32117 http://master.php.net/manage/user-notes.php?action=reject+32117

« previous php.notes (#48206) next »