Showing posts with label use of var_dump() in php with example. Show all posts
Showing posts with label use of var_dump() in php with example. Show all posts

Sunday, 15 June 2014

var_dump_in_php

why we use var_dump() in php

<?php
$var1= hello;
 var_dump($var1); // show the string  data tyoe
echo "</br>";
$var2=20;
var_dump($var2); // show the integer data type
echo "</br>"
$var3=20.4;
var_dump($var3); // show the float data type
?>

var_dump() function is mainly use for check or show the data type  in php and it print the data type in outupt screen