PHP Interview questions

Total available count: 33
Subject - PHP Frameworks
Subsubject - PHP

What is the use of var_dump() function?

var_dump — Dumps data about a variable

void var_dump ( mixed $expression [, mixed $... ] )

This function displays structured data about one or more expressions that includes its type and value. Arrays as well as objects are explored recursively with values indented to show structure.

All public, private and protected properties of objects will returns in the output unless the object implements a debugInfo() method (implemented in PHP 5.6.0).

Next 5 interview question(s)

What is Type Juggling and Type casting?
What is the difference between FUNCTION and METHOD?
What are Magic constants?
How to define constants?
What is need for using static variables?