Skip to content

Tag Archives: PHP-function

A string is a sequence of characters. It may contain integers or even special symbols. Every character in a string is stored at a unique… Read More
An array is a collection of elements stored together. Every element in an array belong to a similar data type. The elements in the array… Read More
PHP require() Function: The require() function in PHP is basically used to include the contents/code/data of one PHP file to another PHP file. During this… Read More
A string is a sequence of characters in PHP. The length of the string can be limited in PHP using various in-built functions, wherein the… Read More
A string is a sequence of one or more characters. A string is composed of characters, each of which can be replaced easily in the… Read More
In this article, we will discuss how to find the index of an element in an array in PHP. Array indexing starts from 0 to… Read More
In this article, we will discuss how to get total number of elements in PHP from an array.  We can get total number of elements… Read More
 PHP magic methods are special methods that are called automatically when certain conditions are met. There are several magic methods in  PHP. Every magic method… Read More
In this article, we will discuss how to remove duplicate elements from an array in PHP. We can get the unique elements by using array_unique()… Read More
The array_push() and array_pop() methods in PHP is used to perform insertions as well as deletions from the object. The article below illustrates the usage… Read More
A string is a sequence of characters stored in the incremental form in PHP. A set of characters, one or many can lie between any… Read More
A string is a sequence of characters stored in PHP. The string may contain special characters or numerical values or characters. The strings may contain… Read More
Write a program to reverse the digits of an integer. Examples :   Input : num = 12345 Output: 54321 Input : num = 876… Read More
Given an array of integers and the task is to write a program that efficiently finds the second largest element present in the array.  … Read More
In this article we will discuss about array_count_values() function in PHP The array_count_values() function is used to count all the values inside an array. In… Read More

Start Your Coding Journey Now!