http://www.php.net/manual/en/function.preg-match.php
http://www.php-forum.com/p/viewtopic.ph ... ght=regexp
Moderators: macek, egami, gesf
$original="YYYYMMDDHHMMSS";
$new=substr_replace($original, '-', 4, 0);
$new=substr_replace($new, '-', 7, 0);
$new=substr_replace($new, '-', 10, 0);
$new=substr_replace($new, '-', 13, 0);
$new=substr_replace($new, '-', 16, 0);
Return to PHP coding => General
Users browsing this forum: No registered users and 1 guest