In this tutorial, I would like to show you how we can use transactions in YII2. A transaction is used to run a group of…
1 CommentCategory: PHP / MySQL
In this tutorial, I would like to show you making the dropdown list in yii2 using different data sources like static array data and database…
3 CommentsHi there guys! Today I am going to share a very useful snippet that you can use to see the execution time of your script…
Leave a CommentToday I would like to share a PHP code snippet that lets you know if a given specific domain is registered or available for purchase…
2 CommentsToday I would like to show you increasing PHP script execution time limit using ini_set() function. PHP default script execution limit is 30 seconds. In…
Leave a CommentToday I would like to given quick introduction on PHP’s magic constants. PHP provides a set of predefined constants and which are available on any…
Leave a CommentIn this post I would like to talk about string compression in PHP. There are several algorithms out there which have been designed for specific…
Leave a CommentIn this tutorial you will learn how to get maximum value from the specified column of table using MySQL’s max() function. We can easily use…
Leave a CommentAnother cool new future in PHP 7 allows to bind a closure to a specific object on run-time with the addition of Closure->call() function. This…
Leave a CommentCalling non-static methods as static method has been deprecated in PHP7 and my be removed in the future versions. The below example will output: Deprecated:…
2 CommentsPHP 7 is improved current PHP namespace implementation by introducing the concept of Group Use. This is the one of the coolest improvement to namespaces…
Leave a CommentYou can define a constant by using the define() function or by using the const keyword outside a class definition as of PHP 5.3.0. Once…
Leave a CommentPHP 4 constructors were preserved in PHP 5 alongside the new __construct().PHP 4 constructors are methods that have the same name as the class they…
1 CommentHere I present an example and a short tutorial on anonymous classes in PHP.Anonymous classes are new to PHP which are included in PHP7. An…
1 CommentPHP while loops execute a block of code while the specified condition is true.In PHP, we have the following while looping statements: while – loops…
Leave a Comment