jeudi 9 avril 2015

if statement with just one variable as conditionals-php

I am trying to study php and I came across a if statement which has a single variable as a conditional like this:



<?php if($a){
//do something
}
?>;


I know some C++ and javascript, but in those languages, this if statement would ben invalid. Could anyone tell me what this if statement means?


Aucun commentaire:

Enregistrer un commentaire