[Solved] Extract dates from a string in php


like this

$string = "period from 06/01/2014 to 06/30/2014";

$results = array();

preg_match_all('#\d{2}/\d{2}/\d{4}#', $string, $results);

$date1 = $results[0][0];
$date2 = $results[0][1];

2

solved Extract dates from a string in php