I have 3 separate strings:
$d = 'Created on November 25, 2009';
$v = 'Viewed 17,603 times';
$h = '1,200 hits';
Which needs to be converted to:
$d1 =
{unix timestamp of November 25, 2009};
$v1 = "17603";
(commas stripped if it exists)
$h1 = "1200";
(commas stripped if it exists)
What is the most efficient way to do this (possibly with regex)? Any code snippet would be great.