- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
$value = trim($value);
$delim = array('/','.');
foreach ($delim as $delimiter){
$x = strpos($value, $delimiter);
if($x === false) continue;
else{
$value=str_replace($delimiter, '-', $value);
break;
}
}