Skip to content

Tag Archives: PHP-basics

You are given an array of n elements in PHP. You have to separate the elements from the array based on the elements are odd… Read More
You are given an array of strings. You have to change all of the strings present in the given array to uppercase no matter in… Read More
We already have learnt about file inclusion in PHP in the article PHP | (Include and Require). We have discussed about include() and require() functions… Read More
The filter_var() function filters a variable with the specified filter. This function is used to both validate and sanitize the data. Syntax :- filter_var(var, filtername,… Read More
We are given an array which consists of multiple dates in (Y-m-d) format. We have to write a program in PHP to sort all the… Read More
The term PHP is an acronym for PHP: Hypertext Preprocessor. PHP is a server-side scripting language designed specifically for web development. It is open-source which… Read More
We already have discussed about variables and global variables in PHP in the post PHP | Variables and Data Types. In this article, we will… Read More
Debugging is as important as coding in the field of development. There might occur a case when the developer needs to check information of a… Read More
The PHP Language is an interpreted language, i.e. it is executed statement after statement. By default one characteristic of PHP makes it send HTML as… Read More
A perfect number is a number if it is equal to the sum of its factors,that is original number is equal to sum of all… Read More
Given a number, we need to check whether it is prime or not in PHP. General approach for prime check is discussed here. In this… Read More
The Bitwise operators is used to perform bit-level operations on the operands. The operators are first converted to bit-level and then calculation is performed on… Read More
In a production level code it is very important to keep information as either variables or constants rather than using them explicitly. A PHP constant… Read More
A number is called even if the number is divisible by 2 and is called odd if it is not divisible by 2. Given a… Read More
The Fibonacci series is a series of elements where, the previous two elements are added to get the next element, starting with 0 and 1.… Read More

Start Your Coding Journey Now!