a1amattyj Posted November 23, 2010 Share Posted November 23, 2010 Hi, Say you had, <business_name type="string">L Choong</business_name>, contained inside a variable(content before and after this in the same var), how would you extract the 'L Choong' information as a new var? Thanks Quote Link to comment Share on other sites More sharing options...
phoenixx Posted November 23, 2010 Share Posted November 23, 2010 Try $data = ("urlYouAreScraping"); preg_match('/business_name type="string">([^"]*)<\/business_name>/is',$data,$out); // Getting the business name echo $out[1]; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.