+ 2

why we use var_dump?

12th Feb 2020, 5:23 PM
minal mukarande
minal mukarande - avatar
6 Antworten
+ 8
var_dump() function displays structured information about one or more expressions that includes its type and value. Arrays and objects are explored recursively with values indented to show structure. In addition, here you can find more info and examples about it: https://www.php.net/manual/en/function.var-dump.php
12th Feb 2020, 10:17 PM
Manos Manik
Manos Manik - avatar
+ 2
To display an object. It is used in debuging faze of a project
12th Feb 2020, 5:49 PM
Gabriel Ilie
Gabriel Ilie - avatar
+ 2
you’re welcome. You can look into print_r function also
12th Feb 2020, 6:06 PM
Gabriel Ilie
Gabriel Ilie - avatar
+ 1
so it display its type and value...am I right?
12th Feb 2020, 5:56 PM
minal mukarande
minal mukarande - avatar
+ 1
yes it does
12th Feb 2020, 6:03 PM
Gabriel Ilie
Gabriel Ilie - avatar
+ 1
got it....thank you😊
12th Feb 2020, 6:03 PM
minal mukarande
minal mukarande - avatar