Some useful PHP OOP Codes and projects for Learning And studying Objected-Oriented Programing with php
Class That's Say Hello For the Custom name
A class wich is calling with autoload function with the same name for the class and it's file
The class Has 1 method Called $name With default value equale "guest"
# And 2 Functions
1 Called getName()
which insert it's parameter value for the method $name value but first do it it check if it isn't inserted as null or "guest"
Another 1 Called sayHello() Wich check if method $name isn't null or "guest" and if the condition is true it will return an h3 with a message for saying hello ! for the method $name