In this tutorial, we will learn how to write factorial programs in PHP using for loop and recursion functions. Factorial says to multiply all numbers from the chosen number to 1. The factorial symbol is “!” For examples: 4! =
Category: PHP
Convert String Uppercase to Lowercase & Lowercase to Uppercase PHP
In this tutorial, we will show you how to convert a string to uppercase and convert a string to lowercase. PHP String to Uppercase to Lowercase & Lowercase to Uppercase Here are some ways: 1. Convert string to lowercase You
Read More Convert String Uppercase to Lowercase & Lowercase to Uppercase PHP
isset() and unset() Function in PHP with Examples
In this tutorial, we would love to share with you isset() and unset() functions in PHP isset and unset Function in PHP Here are isset() and unset() functions of PHP with its definition, syntax and examples: PHP isset() Function isset()
Remove First 2, 3, 4, 5, 10, etc, Character From String PHP
In this tutorial, you will learn to remove the first 2, 3, 4, 5, 10, characters from string in PHP. To Remove First Character From String PHP Let’s use ltrim(), substr_replace() or substr() PHP function to remove first character from the string: Method
Read More Remove First 2, 3, 4, 5, 10, etc, Character From String PHP
Replace First and Last Character From String PHP
In this tutorial, we will show you how to replace first and last character from string in PHP. To Replace character from string PHP Before we take an example of replace first and last character from string, Let’s see you
Generate 6,8,10 digit random, unique, alphanumeric strings and Number in PHP
In this tutorial, we will show you how you can easily generate 6,8,10,12 digit random, unique, alphanumeric string and number in PHP. Generate 6,8,10,12 digit random, unique, alphanumeric string and Numbers in PHP Method 1:- Using str_shuffle() Function The PHP
Read More Generate 6,8,10 digit random, unique, alphanumeric strings and Number in PHP
Generate 4,6,8,10 digits Unique Random Number in PHP
In this tutorial, we would love to share with you how to generate 2,4,6,10,12 digit unique random numbers in PHP. How to Generate 4,6,8,10 digits Unique Random Number in PHP You can use the php rand() and mt_rand() function to
Read More Generate 4,6,8,10 digits Unique Random Number in PHP
Compare Arrays Keys and Values PHP
In this tutorial, you will learn how to PHP compare two or more array keys and values and find the difference between two or more array using the PHP array_diff_assoc() function. How to Compare Two or More Arrays Keys and
PHP Compare Two Array for Matches
In this tutorial, you will learn how to compare two or more arrays in PHP and create new arrays with match values. How to Compare Two or More Array for Matches in PHP? You can use array_intersect() function of PHP
PHP Function: Date and Time Example
PHP Date & Time Function With Example. In this article, we will learn how to use PHP date and time functions. Learn more about PHP date() & PHP time related functions like php strtotime() etc. PHP Date and Time Function