I have a string like this: "date created:12 march 1996phone:33444567Location:california steet 5"
date created
, phone
and location
are fixed but their value is changing. I want to extract them from string and want to display them separate.
I have a string like this: "date created:12 march 1996phone:33444567Location:california steet 5"
date created
, phone
and location
are fixed but their value is changing. I want to extract them from string and want to display them separate.
preg_match('~date created:(.*)phone:(.*)Location:(.*)~', $string, $matches);
var_dump($matches);