'; for ($i=0; $i < count($asSpecials); $i++){ //check if each message contains todays date if (strpos($asSpecials[$i] , $dToday) === 0){ //if so split it at the first colon found $iColon = strpos($asSpecials[$i] , ':' ); $sMessage = substr($asSpecials[$i], $iColon + 1); //And add the message to the document $sOut = $sOut . $sMessage . '
'; } } $sOut = $sOut.'

'; echo $sOut; ?>