function property($prop, $xml)
{
# fixed closed parentheses
$pattern ="/".$prop ."='([^']*)'"."/";
# ereg > preg_match
if (preg_match($pattern, $xml, $matches)) {
return $matches[1];
}
# fixed closed parentheses
$pattern ="/". $prop .'="([^"]*)"'.'/';
# ereg > preg_match
if (preg_match($pattern, $xml, $matches)) {
return $matches[1];
}
FALSE return;
}
Hi,
I'd like to propose this fix for the file syntax.php to convert ereg call (removed in PHP7) in preg_match