Adding or subtracting interval to a DateTime instance is quite easy. Two methods we are going to described in this post. Both methods belong to DateTime object itself.
Use type casting for create stdClass objects in PHP. Its convert simple array into a stdClass object. This is very quick and easy way to creating new stdClass objects with desired properties set.
Many websites need to display the time of some event, which is local for the logging user. For this there needs to firstly get the time zone of that user. In this article, we will see the way to determine the… Continue Reading
In computer terminology, benchmark is the process of measuring the performance of computer resources, particularly the hardware, against any task performed by the computer.
In this article though i am not presenting anything new, but surely something that is quite useful for PHP programmers.
Now a day, it is very common requirement of the clients, to have the data in CSV format and thus has become a routine work for the software developers. Though there is nothing difficult to create a csv file from the… Continue Reading
Json is the most common format used by API providers to express their output. Json provides a very simplified and easily understandable key-value pair formatted data that can be further manipulated and used at great ease.
Pattern matching is to check for the presence of some string in a given text. You must be wondering what I am intending to convey by the term fast in the title of this article.