Generally, once we upload image enter PHP, the uploaded image is stored during a directory of the server and therefore the respective image name is stored into the database. At…
The substr_count() function is a built-in function in PHP which is used counts the number of times a substring occurs in a string. Note: This function does not count overlapped substrings.…
The str_replace() function is an built-in function in PHP which is used to replaces any portion of a string with another string. This function is binary-safe. Note: This function is…
The strrev() function is an built-in function in PHP which is used to reverse strings. Syntax: string – This parameter is required. It specifies the string to reverse. Example:
The empty() function is an built-in function in PHP which is used to check whether a variable is empty or not. A variable is empty if it does not exist or if…
The isset() function is an built-in function in PHP which is used to check whether a variable is set or not. The isset() will return true if testing a variable…
The PHP strlen() is used to get the length of a string. It also includes the white spaces inside the string. Syntax: string – This parameter is required. It specifies the length…
The rtrim() function is a built-in function in PHP which is used to removes whitespace from the end of a string. Syntax string – This parameter is required. It specifies the…
The ltrim() function is a built-in function in PHP which is used to removes whitespace from the beginning of a string. Syntax string – This parameter is required. It specifies the…
The ucfirst() function is used to change the first character of a string to uppercase. Otherwise, We can use the strtolower() function in combination with the ucfirst() function, if you need to make only first…
The strtoupper() function is used to converts a string to uppercase. All other special characters or numeric characters in the string remains unchanged. This function is binary-safe. Syntax string –…
The strtolower() function is used to converts a string to lowercase. All other special characters or numeric characters in the string remains unchanged. This function is binary-safe. Syntax: string –…