note 12100 deleted from function.ereg by jimw

From: Date: Fri, 02 Nov 2001 01:24:14 +0000
Subject: note 12100 deleted from function.ereg by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20136@lists.php.net to get a copy of this message
ereg() only matches one occurrence of what you are searching for in the string, which I do not think is at all clear in the function description, since they constantly say "matches" are found. The optional third argument does not hold all the different matches, rather it holds the pieces of your pattern that match a single occurence. Each piece of your pattern is a section enclosed in parenthesis. The first element of the array contains the entire match, and the subsequent elements contain the pieces.

« previous php.notes (#20136) next »