Free  PHP Generator - reading file content

In PHP, to fetch content from a file, a common implementation is to loop its content and store them in a temporary variable. In today's tutorial, we want to introduce a solution by using the generator. Read file using a loop Normal we will load the file content to memory and read its c...

View details

Free  PHP Generator - processing dataset

In PHP, to work with a dataset, the natural thing to do is to use a loop, store the result to an array and return it. In today's tutorial, we introduce a solution by using a generator. Return in a loop For demonstration purposes, imagine we need a function that returns a series of numb...

View details

Free  How to Build a PHP Booking Calendar with MySQL

In this tutorial, we will build a nice booking calendar using PHP and MySQL. Booking calendars are very common applications, you will learn how to write PHP code that separates business logic from presentation through this tutorial. After this tutorial, you should be able to build a working b...

View details

Free  Modern PHP Developer - TDD

Table Of Content PHPUnit TDD by example The end ...

View details

Free  Modern PHP Developer - Exception

Since PHP 5 was released, Exception is added to PHP as an object-oriented programming language feature. By definition, an Exception is an exceptional event during program execution. In PHP, an Exception is simply an object (an instan...

View details