- var_dump: documentation ( source)
- strpos: documentation ( source)
- preg_match: documentation ( source)
<?php
$str = 'CustomErrorLog "/errorlog wtf" hello bvc "jjrr" hello rrgg/x^$46/ "rggg£"';
preg_match('/"([^"]*)"|\S+/', $str, $matches);
$errorLog = 'syslog:wtf';
var_dump(false !== strpos($errorLog, "syslog:"));