Reputation: 11
I have a page like w/e more HTML I need to grab all the data between the tags and not the first one. Currently I use
<?php([^<]*?)\?>/"
But it grabs the first one and stops. Any help?
Upvotes: 1
Views: 217
Reputation: 1048
use this with preg_match_all()
preg_match_all("/<?php([^<]*?)\?>/siU",$html,$output);
print_r($output[1]);
Upvotes: 1