Skip to content

Category Archives: PHP

We can show all errors in PHP using the error_reporting() function. It sets the error_reporting directive at runtime according to the level provided. If no… 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
You can start and stop a timer in PHP using the microtime() function in PHP. The microtime() function is an inbuilt function in PHP which… 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
Strings in PHP can be converted to float very easily. In most use cases, it won’t be required since PHP does implicit type conversion. There… Read More
In this article, we are going to replace the String with another by using the PHP built-in str_replace() function. A String is a collection of… Read More
The PHP strval() function is used to convert an Integer Into a String in PHP. There are many other methods to convert an integer into… Read More
A string is a collection of given characters and a substring is a string present in a given string. In this article, we are going… Read More
When we talk about AsgardCMS it is quite clear that it is a framework that provided ease to the developer by providing a basic architecture… Read More
AsgardCMS offers us the facility to add new modules apart from the existing modules in the application. We can add a new module as per… Read More
The SplPriorityQueue::isCorrupted() function is an inbuilt function in PHP that is used to tells the priority queue is in a corrupted state or not. Syntax:… Read More
The SplPriorityQueue::isEmpty() function is an inbuilt function in PHP that is used to check whether the queue is empty or not. Syntax: bool SplPriorityQueue::isEmpty() Parameters:… Read More
The SplPriorityQueue::key() function is an inbuilt function in PHP that is used to return the current node index. Syntax: mixed SplPriorityQueue::key() Parameters: This function does… Read More