How to Count PHP Words
How to count php words In this article, we will see how to count php words. We can use PHP str_word_count() in-built function to count the number of words in…
How to count php words In this article, we will see how to count php words. We can use PHP str_word_count() in-built function to count the number of words in…
PHP Capitalize First Letter of Each Word To capitalize the first letter of each word in a PHP string, we need to use the PHP ucwords() in-built function. This function…
PHP Remove Space from String To remove unwanted space from a string in PHP, we need to use the PHP trim() in-built function. This function removes leading and trailing unwanted…
Substring Function in PHP Learn the substring function in php with example codes. The substr() indicates the substring function and it is used to retrieve a section of the string.…
isset Function in PHP In this article, we will discuss the isset function in php with an example code. It checks the variable we have created or not. We put…
Count Array Values in PHP Learn how to count array values in php with example codes. To count array values, we need to use the count() function. An important task…
PHP Sort Array Alphabetically To sort the php array alphabetically, we need to use the sort() function. PHP comes with a number of built-in functions designed for sorting array elements…
Create Empty Array PHP Learn how to create empty array php with example codes. When the situation comes to store user input in an array, we need to create an…
rand function in PHP rand():int It returns a random number between 0 and to the largest possible random value. Ex: echo rand(); rand(minvalue:int, maxvalue:int):int Returns a random number between minvalue…
PHP Concatenate String and Variable Learn what is concatenate operator is in php and how we concatenate strings and variables. PHP supports string concatenate, variable as well as array concatenation.…