0
Var_dump explain
What is the use of var_dump function and why we need to use it? It's description says that it is used to dump information about a variable but I don't understand what is the meaning of dumping a variable and why should we dump a variable and what will happen if we don't dump a variable? And why it is used in laravel app?
1 Answer
+ 1
var_dump is used for debug purpose. It returns the value and type of variable.
Here is a very simpe example:
https://code.sololearn.com/wpxT308c0mTC/?ref=app