Author Publishing

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