PHP check whether image exists on remote URL

February 12, 2014

The simplest and fastest way is to use curl if your host supports curl.

PHP check if a url is valid using filter_var

February 12, 2014

URL can simply validate use FILTER_VALIDATE_URL in filter_var(). For example: IT can be in a function:

PHP – How to check if variable is an array?

February 12, 2014

PHP has an internal variables handling functions to finds whether a variables is an array Another fastest way of determining an array is by: Cast the value to an array, then check using (===) if it is identical to the original.