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)

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