[PHP-DEV] Re: Bug #11064 Updated: ereg() doe's not accept the third argument as reported in doc From: jihad muhammad tanit (jmt <email protected>)
Date: 05/24/01

i'm sorry it's me. i made a mistake. there should be an option to remove a
bug report from the database.
sorry again. and thank you.

jmt <email protected>
SDF Public Access UNIX System - http://sdf.lonestar.org

On 23 May 2001, Bug Database wrote:

> ID: 11064
> Updated by: sniper
> Reported By: jmt <email protected>
> Old-Status: Open
> Status: Closed
> Bug Type: Regexps related
> Operating system:
> PHP Version: 4.0.5
> Assigned To:
> Comments:
>
> And what should happen? You try this:
>
> <?php
>
> $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] jmt <email protected>
> try this :
> ereg( $a, $b, $c );
>
>
> ---------------------------------------------------------------------------
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at http://bugs.php.net/?id=11064&edit=2
>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>