Top Interview questions in PHP

The Full form of PHP is Hypertext Preprocessor


Question : PHP is case sensitive or not ?
Answer : PHP function, constructs, class names are not case sensitive but variables are case sensitive so we can say that PHP is partially case-sensitive programming language.


Question : What is NULL in php ?
Answer : NULL is a variable, If a variable is created without a value, it is automatically assigned a value of NULL.


Question : What are the rules in php variables ?

Rules for PHP variables name

  1. A variable name starts with $ sign with letter or underscore character, It cannot start with a number.
  2. It contain alpha-numeric characters and underscores (A-z, 0-9, and _ ),
  3. Variable names are case-sensitive ($date and $DATE are two different variables)

Question : Types of variables in php ?

Types of PHP variables

  • PHP has no command for declaring a variable, and the data type depends on the value of the variable.
  • There are 08 different types of String, Integer, Float, Boolean, Array, Object, NULL, Resource.

Question : PHP framework examples ? Answer : CodeIgniter, Laravel etc


Question : Types of error in PHP ? Answer : syntax, fatal, warning, and notice errors.

Leave a Comment

Your email address will not be published. Required fields are marked *