There are mainly four types of error in PHP
Syntax error: This type of error occurs in PHP while there is a mistake in PHP syntax like missing semicolon, missing assignment, missing or extra parentheses, and missing curly braces.
Fatal error: when an object calls a class that time class does not exist. These errors cause immediate cancellations of the system, and PHP's conventional activities are to demonstrate them to the user when they take place.
Notice error: it is a non-critical error that PHP activates while booting a system. By default, such errors are not visible to the users.
Warning error: when you use an incorrect number of parameters in a function, a warning error occurs. Warning errors are more serious like trying to include () a file which does not exist. These mistakes are shown to the user, but they do not result in program cancellations.