var_dump PHP function

var_dump PHP function provides more details about PHP variable. It not only provides its content, but also provides the type of the variable.

Second argument is optional, It can be either true or false, 0 or 1.

By default it is false, so the content of a variable will be outputted to the screen. If second variable is 1, then the formatted content of a variable will be assigned to a different variable.

YouTube video

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator