Sometimes we need to get something from current URL or page or we need to check for something (text or variable) in URL which can determine further action in that page. Suppose you want to match any word in the current URL and if that word or text is present in URL, you want to […]
We can find out the difference between two given dates in PHP very easily. Consider the following PHP script:
This script will provide you visitor’s browser’s information.
Use this simple test for checking or detecting user’s browser information.
function_exists — Return TRUE if the given function has been defined. To check that whether a function is defined or exists or not use function_exists. Checks the list of defined functions, both built-in (internal) and user-defined, for function_name. Returns TRUE on success or FALSE on failure.