Author Publishing

Closures in PHP

Closures in PHP

Today we will learn a very interesting topic known as closure. PHP started support of closure with version 5.3.0. Before understanding closure term first we have to understand some terms. which are- Lazy Loading: – Lazy loading terms that the loading of an object is delayed until it is really required. Anonymous function: – An anonymous […]

Read More

Namespaces in PHP

Namespaces in PHP

Today we are going to learn about Namespace in PHP.  Let’s start with definition of namespace So “Namespace are basically a way of organising your PHP classes and preventing from any kind of code conflicts . See this example , <?php namespace Webkul; //We have here a namespace with name Webkul and a class Name […]

Read More

Autoloading in PHP

Autoloading in PHP

Today we are going to learn how autoloader works in php. Let’s say we have a  file student.php which have a class name student i want to use this class instance somewhere in other file. For example i am using index.php if i want to create instance of the  student class then first i have to include […]

Read More
css.php