Can someone explain to me a variable declaration inside a definition of a function, like the one below. What's the purpose? The coding language I use is PHP.
function parse( $filename=FALSE ) {
//some code
}
That is a default value for the function. So if you call parse(), then $filename will be FALSE. However, you could also call parse("/path/to/my/file") and then $filename will contain "/path/to/my/file"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With