Jump to content

[SOLVED] preg_match_all


MikeDXUNL

Recommended Posts

I have the code:

 

<p class="XbcPIGame"><strong>Developer: </strong><a target="_external" href="http://www.edgeofreality.com/">Edge of Reality</a></p>

 

 

I want to get "Edge of Reality" out of that, here is my PHP:

 

	preg_match_all('%<p class="XbxPIGame">(.+?)</p>%s', $data, $developer);

 

 

when I print_r($developer);

 

nothing comes in the array

 

Thanks in advance,

Mike

Link to comment
https://forums.phpfreaks.com/topic/109518-solved-preg_match_all/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.