Skip to content

Tag Archives: PHP-function

A string is a combination of words combined together. The first character of the string can be converted to an upper case in case it… Read More
In this article, we are going to generate a JSON file in PHP by using an array. JSON stands for JavaScript object notation, which is… Read More
In this article, we will find the last character of a string in PHP. The last character can be found using the following methods. Using… Read More
In this article, we will upload images to the MySQL database using PHP PDO and display them on the webpage.  Approach: Make sure you have… Read More
The purpose of this article is to extract numbers from a string using PHP. Approach: We can use the preg_replace() function for the extraction of… Read More
In this article, we learn how to find the length of the string in PHP.  Approach: This task can be done by using the built-in… Read More
The best way to convert uppercase string to lowercase in PHP is by using the strtolower() function. It takes the string as the input and… Read More
Each entry in the associative array is characterized by a unique key-value pair. An array can contain singular data types belonging to variables or other… Read More
An array is essentially a storage element for key-value pairs belonging to the same data type. If keys are specified explicitly, ids beginning from 0… Read More
The SplHeap::insert() function is an inbuilt function in PHP which is used to insert an element in the heap by sifting it up. Generally, the… Read More
The SplHeap::valid() function is an inbuilt function in PHP which is used to check whether the heap contains more nodes. Generally, the Heap Data Structure… Read More
In PHP, the foreach loop can be used to loop over an array of elements. It can be used in many ways such as To… Read More
A number is essentially a sequence of digits stacked together to form an integer or string. A number can begin with leading zeros. A number… Read More
In this article, we will learn how to get the current file extensions in PHP. Input : c:/xampp/htdocs/project/home Output : "" Input : c:/xampp/htdocs/project/index.php Output… Read More
In this article, we are going to discuss how to write into a text file using the PHP built-in fwrite() function. The fwrite() function is… Read More

Start Your Coding Journey Now!