How to spot the specific string in PHP? -
my code
$data = "met salesperson in sunway carnival. name katie hopkins, manager of marketing & sales. mobile phone 0165531477. , then, met katie holmes, mobile phone 0123456777."; echo preg_match('\h*(\d+)',$data);
i want retrieve particular information string, $data
, assign people name array $name[]
, mobile phones array $mobile[]
. below example, don't know how php coding people name , mobile phone numbers particular array.
$name[0] = 'kean teck'; $mobile[0] = '0165531477'; $name[1] = 'katie hopkins'; $mobile[1] = '0123456777';
Comments
Post a Comment