Table of Contents

  1. How to pop an alert message box using PHP?
  2. PHP | strval() Function.
  3. How to delete an array element based on key in PHP?
  4. PHP | in_array() Function.
  5. How to check whether an array is empty using PHP?
  6. How to receive JSON POST with PHP.
  7. How to Upload Image into Database and Display it using PHP?

What is Strtolower function in PHP?

PHP | strtolower() Function The strtolower() function is used to convert a string into lowercase. This function takes a string as parameter and converts all the uppercase english alphabets present in the string to lowercase. All other numeric characters or special characters in the string remains unchanged.

What is the function of the Ucfirst and Ucfirst functions?

PHP String ucfirst() Function. The ucfirst() function is used to convert the first character of the string into the uppercase. It is an in-built function of PHP, which takes a string as input and converts only the first letter of that string to uppercase.

How can I uppercase a word in PHP?

The ucwords() is an in-built function of PHP, which is used to convert the first character of each word to uppercase in a string. The ucwords() is supported by the PHP 4 and above versions. It takes a string as an input and converts the first character of each word of the string to uppercase.

How do you capitalize letters in PHP?

PHP | strtoupper() Function The strtoupper() function is used to convert a string into uppercase. This function takes a string as parameter and converts all the lowercase english alphabets present in the string to uppercase. All other numeric characters or special characters in the string remains unchanged.

How do you capitalize text in PHP?

The ucfirst() function converts the first character of a string to uppercase. Related functions: lcfirst() – converts the first character of a string to lowercase. ucwords() – converts the first character of each word in a string to uppercase.

What is explode in PHP?

explode() is a built in function in PHP used to split a string in different strings. The explode() function splits a string based on a string delimiter, i.e. it splits the string wherever the delimiter character occurs. This functions returns an array containing the strings formed by splitting the original string.

How do I make the first letter small in PHP?

The lcfirst() function converts the first character of a string to lowercase. Related functions: ucfirst() – converts the first character of a string to uppercase. ucwords() – converts the first character of each word in a string to uppercase.

How to make a string uppercase or lowercase in PHP?

PHP provides built-in functions for that. The functions are listed below which is followed by examples of using them. strtoupper() function– For making a PHP string uppercase (all letters in the string) strtolower() function – that converts a specified string to lowercase letters.

How to convert string to uppercase in JavaScript?

To convert string to uppercase, we use strtoupper () method which returns uppercase converted string. This method takes a string in any case as an argument and returns uppercase string. This function converts first letter in uppercase of the string. This function converts each first character of all words in uppercase.

How do I convert a string to uppercase in Python?

The strtoupper () function converts a string to uppercase. Note: This function is binary-safe. Required. Specifies the string to convert

How to capitalize a string in PHP?

strtoupper() function– For making a PHP string uppercase (all letters in the string) strtolower() function – that converts a specified string to lowercase letters. ucwords() – camel cased i.e. capitalizes the first letter of each word in a string. For making the first letter of a string capital, use the ucfirst() function of PHP.