Friday, 27 September 2013

What is a better way in php for variables

What is a better way in php for variables

This:
$var = true
if(1 > 0){
$var = false
}
or this:
if(1 > 0){
$var = false
} else {
$var = true
}

No comments:

Post a Comment