Var_dump explain | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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?

26th Jul 2020, 7:22 AM
Shailendra
Shailendra - avatar
1 Antwort
+ 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
26th Jul 2020, 7:38 AM
Gabriel Ilie
Gabriel Ilie - avatar