ok, I'll try to be as basic as possible, this is the code
in thefile.php
$date='24-01-2010-08:00';
preg_replace("/([0-3][0-9])\-([0-1][0-9])\-20([0-9][0-9])\-([0-2][0-8]):([0-6][0-9])/e","$dates=array(0=>$1,1=>$2,2=>$3,3=>$4,4=>$5)",$date);
and this is the error:
Parse error: parse error, unexpected '=', expecting '(' in thefile.php(1) : regexp code on line 1
Fatal error: preg_replace() [function.preg-replace]: Failed evaluating code: Array=array(0=>24,1=>01,2=>10,3=>08,4=>00) in thefile.php on line 1
I have no idea what could be wrong here, if I comment the preg line out it gives no error, and the array php is allso file when it is not inside the preg...
anyone know what I do wrong here? 🙂