regex. and timestamp issue
I wrote this:
$remrow['Work_Log'] = ereg_replace("11[0-9]{8}", date("c","\\0"), $remrow['Work_Log']);
Basically this should replace timestamps with a friendly date
Only I get this message:
Warning: date() expects parameter 2 to be long, string given in D:\docssite\remedy.php on line
And no replacements
If I sub out \\0 with the actual timestamp, I see the friendly date
If I remove date(“c”,\\0) and replace it with \\0 I see the timestamp.
Any ideas?
Thank you!
|