- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.22
- Parse error: syntax error, unexpected ')', expecting ']' in /in/9JpIr on line 7
Process exited with code 255.
<?php
$urls = array("/category/category.html", "http://google.com");
foreach($urls as $url) {
$res = parse_url($url);
if(!isset($res['host') {
echo "$url is a relative URL";
} else {
echo "$url is a absolute URL";
}
}