PHP – See Variable/Array Values with var_dump()

The var_dump() function allows you to see what a variable’s data type is, and what it’s value is.

var_dump()

varDump.php

<?php

$string = "This is a string, that I will EXPLODE, in this project. Play around with it. See how seperators work.";

$stringArray = explode(",",$string);

var_dump($string);

echo "<br><br>";

var_dump($stringArray);

?>

Be the first to comment

Leave a Reply