Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Shorthand variable condition

$
0
0

Hello I want to ask what does the following code do

 

if($variable){
    // do stuff
}

I have been using it quite a lot and it seems to be working well but I'm not aware of what exactly does it do?


Viewing all articles
Browse latest Browse all 13200

Trending Articles