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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -