başka bir preg_match_all sorunu var, ayrı bir konu açmayayım dedim;
preg_match_all('/<strong>(.*?)<\/td>/Ui', $file, $aaa);
print_r($aaa[0]);<td bgcolor="#cccccc" style="border-bottom:1px solid #999999;border-top:1px solid #999999;" valign="top" width="50%"><strong>Game description:</strong> A new and fun game of tetris that includes kiddie characters you'll surely love!</td>
<td bgcolor="#cccccc" style="border-bottom:1px solid #999999;border-top:1px solid #999999;" valign="top" width="50%"><strong>Game controls:</strong> Arrow Keys - To move.</td>bu kodların bulundugu sayfadan <strong></td> arasında bulunan kısımları almak istiyorum.
ama sadece 1.si çıkıyor. 2. si boş dönüyor. bunun sebebi ne olabilir??
Çıktı
Array ( [0] => Game description: Shoot the incoming enemy shapes as you setup a wall to protect the planet. Similar to Invaders. [1] => Game comments: [2] => Add this game to your web page!
Copy this code to your page )
Kod çalışıyor bi sorun yok, bende 2 sonuç dönderdi.