Configuring PHP using php.ini. This file keeps a central configuration. comments in this file represented in ;
Php included in HTML with block syntax PHP ?>
Phpmyadmin is a tool for Database administrations like MySQL
It uses MySQli extensions to perform CRUD operations with MySQL
Session management in PHP is done using a session object which will be stored in the Browser Cookies.
There is build methods e.g HTML special chars to avoid cross scripting
Latest Php version is 8
Oops
Class keyword and properties are prefixed with $
Properties and Methods are accessed through => and support private, protected and public
Methods are written using Functions
Type is not explicitly defined in Properties and return type in methods
Inheritance implemented using extends
Interface implemented using implements
Properties within the class accessed using this keyword
Class with the same properties for parent and child are accessed using self or parent
Static methods are accessed using classname::methodname
Constructors and destructors are defined using construct or destruct
Including other files which has class defined using include, include once, require or require once. require will throw an exception and stop the executions
Abstract: same as abstrct
Final: prevents child classes from overriding a method or constant by prefixing the definition with final
Symphony Framework
The PHP framework for creating websites and web applications. Built on top of the Symfony Components.
It contains Doctrine ORM to query against DB
It contains namespace and can be referred using use keyword
It contains the Controllers for REST API and similar routing as .net