Skip to content

Category Archives: PHP

Given an array of random numbers, Push all the zero’s of a given array to the end of the array. For example, if the given… Read More
Given a sorted array and a value x, the ceiling of x is the smallest element in array greater than or equal to x, and… Read More
Given a binary array sorted in non-increasing order, count the number of 1’s in it.  Examples:  Input: arr[] = {1, 1, 0, 0, 0, 0,… Read More
Write a function rotate(arr[], d, n) that rotates arr[] of size n by d elements. Example :  Input : arr[] = [1, 2, 3, 4, 5,… Read More
The collection objects in PHP are characterized by a length parameter to indicate the number of elements contained within it. It is necessary to estimate… Read More
PHP array_merge(): The array_merge function in PHP is a type of function that is used to merge or combine one or many arrays into one… Read More
Write a program to print all the LEADERS in the array. An element is leader if it is greater than all the elements to its… Read More
Given an array arr[0 … n-1] containing n positive integers, a subsequence of arr[] is called Bitonic if it is first increasing, then decreasing. Write… Read More
Given a 2D binary matrix of N rows and M columns. The task is to check whether the matrix is horizontal symmetric, vertical symmetric, or… Read More
Chess is a recreational and competitive board game played between two players. It is played on a square chessboard with 64 squares arranged in an… Read More
The openssl_error_string() function is an inbuilt function in PHP which is used to get  the last error from the openSSL library. Error messages are queued,… Read More
Given an array of n integers, find the third largest element. All the elements in the array are distinct integers. Example :   Input: arr[] = {1,… Read More
The session class in CodeIgniter allows the user to maintain a user’s “state” and track their activity while browsing the website. The session can be… Read More
Exception::getMessage: The getMessage exception in PHP language is basically used by the programmers to know the Exception message. It means that whenever an exception condition… Read More
API Testing: An application programming interface (API) is a type of programming interface. API can be thought of as a bridge between two software systems… Read More

Start Your Coding Journey Now!