run code in 150+ php & hhvm versions
Bugs & Features
<?php $source = '<div class="cc"> <div class="text"><a href="/id17168683" class="mem_link" mention="bp-6471_105432" mention_id="id17168683">Артем</a>, я знаю про шнягу на 1.8 фф2, но у мя фф1</div>'; preg_match_all('/(?<=\<div class="text\"\>).*(?=\<\/div\>)/', $source, $matches); var_dump(strip_tags($matches));
Output for 5.3.0 - 7.1.0
Warning: strip_tags() expects parameter 1 to be string, array given in /in/ZQXpr on line 5 NULL
Output for 4.3.0 - 5.2.17
Notice: Array to string conversion in /in/ZQXpr on line 5 string(5) "Array"