Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

preg_replace

<?php
$string = 'April 15, 2003';
$pattern = '/(w+) (d+), (d+)/i';
$replacement = '${1}1,$3';
echo preg_replace($pattern, $replacement, $string);
?>
Source by php.ru #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
6+7 =