Hi! Could we please enable some services and cookies to improve your experience and our website?

PHPize Online / SQLize Online  /  SQLtest Online

A A A
Login    Share code      Blog   FAQ

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

Copy Format Clear

Stuck with a problem? Got Error? Ask AI support!

Copy Clear
Copy Format Clear
<?php $urls = [ 'http://test.url', 'http://.url', 't:as' ]; foreach ($urls as $url) { var_dump(parse_url($url)); if (parse_url($url) === False) { echo 'Wrong address: ' . $url . PHP_EOL; } else { echo 'Good address: ' . $url . PHP_EOL; } }
Copy Clear