note 12324 deleted from function.ereg by jimw

From: Date: Fri, 02 Nov 2001 01:24:30 +0000
Subject: note 12324 deleted from function.ereg by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20138@lists.php.net to get a copy of this message
REMEMBER that $regs[0] contains the matched string, and thus is probably worthless. So if you want to use list(), skip the first element:<br> ereg("([0-9]{1,4})-0?([0-9]{1,2})-0?([0-9]{1,2})", $row->date, $regs); list(, $y, $m, $d) = $regs;<br> Sadly, you can't just say<br> ereg("([0-9]{1,4})-0?([0-9]{1,2})-0?([0-9]{1,2})", $row->date, list(, $y, $m, $d));

« previous php.notes (#20138) next »