Tag : filter_var

ItSolutionStuff.com have tutorials for filter_var tag, here you can study articles of filter_var tag, filter_var tag posts collection, most popular and useful tutorials of filter_var tag, here you can find list of all relevant posts and example about filter_var tag, we have lists of tutorials and examples about filter_var tag. very simple and quick example collection of Latest filter_var tag.

How to check if string is URL or not in PHP?

Sometimes, we require to check the given argument or string is URL or not, as specially i did need to check image column is url or not like i give you example how to do this. If you also need to do this then you can use filter_var(). <strong>Example:</strong> <pre class="prettyprint lang-php"> if(filter_var($imagePath, FILTER_VALIDATE_URL) === FALSE){ print_r("Not valide URL"); }else{ print_r("valide URL"); } </pre>

By Hardik Savani | April 18, 2016 | | 15440 Viewer | Category : PHP