validate a url using php with FILTER_VALIDATE_URL

checks if a url is valid

PHP

$url = "https://kruxor.com/";
if (!filter_var($url, FILTER_VALIDATE_URL)) { $url = ""; }

Other Items in php
Page Views

This page has been viewed 201 times.

Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

❤👩‍💻🕹

Random Quote
Most people can do absolutely awe-inspiring things,” he said. “Sometimes they just need a little nudge.
Unknown