PHP 5.3.0 introduces two new error levels named as E_DEPRECATED and E_USER_DEPRECATED. The E_DEPRECATED error level is used to indicate that a function or feature has been deprecated. The E_USER_DEPRECATED level is intended for indicating deprecated features in user code, similarly to the E_USER_ERROR and E_USER_WARNING levels. The following is a list…
String Validation Validate name, surname by the below function to restrict only letters and spaces. Validate numeric value by the below function to restrict only numbers,you can uncomment any line according to your need. Alphanumeric Characters Validation Below function validates alphanumeric characters.ctype is complete function library in PHP. Validation for URL Exist or not This…
Get live currency rates in PHP & conversion using APIs In the below method, we get live currency rates from Google. This function uses CURL so make sure you have enabled curl extension in php. Google has an inbuilt calculator which can also be used for converting a currency into another.Doing so is really…
Below is the JavaScript function worked like PHP’s str_replace. You can find more equivalent JavaScript function same as it works for PHP. You can get the library of these functions by php.js or can directly download by below link. Download php.default.min.js …
Very easy and handy to use PHP email validation function and File type validation function/methods. Email validation Image File extension validation read out some more ready to use PHP validation functions/methods.…
PHP function to get current web page full URL & current page name. Sometimes, you might want to get the current page full URL. Here is way you can do that. Get current page name. Hope these functions will help you, leave comments if you found anything wrong or these functions is not working on…