. Converts a date in the format yyyy-mm-dd hh:mm:ss to yyyymmddhhmmss . Useful to take advantage of the sorting functions, the type asort() .
1 2 3 4 5 6 | / ** * Format from "yyyy-mm-dd hh: mm: ss" to "yyyymmddhhmmss" * / $d ) { plainDate function ($ d) { preg_replace ( '/(-|:|\040)/' , '' , $d ) ) ; return ( preg_replace ('/(-|:| \ 040) / ','', $ d)); } |






Latest Comments
Simon : It annoys disturbed again and use that space for these things ... however it does not work ...
Giovambattista Fazioli : @ Simon: what could be due to the syntax I used, specifically for PHP 5 +,...
Simon : I tried last night putting everything into functions.php, okay, jquery forms, and tabs jQueryUI them ...
Giovambattista Fazioli : @ Simon: I recommend cleaning to enter a code like that in ...
Simon : @ Giovambattista Fazioli: Thank you for your patience, it's all clear ... now I feel now, ...