note 44941 added to function.strtotime

From: Date: Fri, 20 Aug 2004 18:05:31 +0000
Subject: note 44941 added to function.strtotime
Groups: php.notes 
Request: Send a blank email to php-notes+get-75006@lists.php.net to get a copy of this message
I fixed the regex to that it will have the year optionally, instead of required, since this is allowable behavior for strtotime() <?php $your_value ( preg_replace ('#^(\d{1,2}/\d{1,2}/?(\d{2,4})? )(00)(\d{2})$#', '$1$3:$4', $your_value() )); ?> ---- Manual Page -- http://www.php.net/manual/en/function.strtotime.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44941 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44941&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44941&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#75006) next »