Function : Vdump

The vdump function is used to dump the data type of a value or variable supplied. It also provides a much cleaner view for data types which can be objects, arrays, strings, floats, integers and null values.

sample array
  vdump([1, 2, 3], 2, '3', 4.5); //display data and exit page
                  
Each of the arguments data type will be returned respectively as shown below. However, it is important to note that once a vdump() is used, the page will resolve to an exit. This means that no operation can be peformed later. This is also the reason why all the data types are supplied at once since it is capable of taking multiple arguments.

  
Array
array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) }
Integer
int(2)
String
string(1) "3"
Float
float(4.5)