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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -