ID: 11064
Updated by: sniper
Old-Status: Open
Status: Closed
Bug Type: Regexps related
Operating system: 
PHP Version: 4.0.5
Assigned To: 

And what should happen? You try this:


$date = date("Y-m-d");

if (ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $date, $regs)) {
    echo "$regs[3].$regs[2].$regs[1]";
} else {
    echo "Invalid date format: $date";


Works for me just fine.

Previous Comments:

[2001-05-23 16:54:07] [EMAIL PROTECTED]
try this :
ereg( $a, $b, $c );


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to