- array_map: documentation ( source)
- array_splice: documentation ( source)
- array_keys: documentation ( source)
- file: documentation ( source)
<?php
$haystackfff = file ("http://www.ikalender.com/kalender-singandgroove/mein-kalender.sp.14.html?&modus=liste" , FILE_IGNORE_NEW_LINES );
$haystackff = array_splice($haystackfff, 93);
$haystackf = array_map('strip_tags', $haystackff);
$haystack = array_map('trim', $haystackf);
$needle = "Trommelsamstag" ;
$newArray = array_keys( $haystack , $needle );
foreach ($newArray as $key => $value) {
echo " $key - <strong>($value )</strong> <br />" ;
}