Difference between split and explode php Do you know what is the main difference between split() and explode()? No worries 🙂 , the main difference in split() and explode is the way, it uses to splitting a large string. Both the functions are used to Split a string. However, Split is used to split a…
Function: trim — Strip whitespace (or other characters) from the beginning and end of a string. Syntax: string trim ( string $str [, string $charlist ] ) Arguments: str The string that will be trimmed. charlist Optionally, the stripped characters can also be specified using the charlist parameter. Argument Options: PHP trim…
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…
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…