3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( "Titel 1", "Bericht 1", "Link 1", "Titel 2", "Bericht 2", "Link 2", "Titel 3", "Bericht 3", "Link 3", "Titel 4", "Bericht 4", "Link 4", "Link 5", "Link 6" ); foreach($array as $value){ $explode = explode(' ',$value); foreach($explode as $v){ if($v == 'Link'){ print($value.' ');}} }

preferences:
50.81 ms | 402 KiB | 5 Q