bhession
asked on
What does this PHP sentence mean/do?
Dont know very much about PHP this shoule be a straightforward one for anyone familiar with it. Below I am trying to figure out what this line does so I can replicate it in Java.
if (!$power) $power=0;
I think it is saying, If power is null then power is 0.
Can anyone confirm?
if (!$power) $power=0;
I think it is saying, If power is null then power is 0.
Can anyone confirm?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If $power is empty, NULL, FALSE or Zero, it will assign the integer value Zero.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Much gratitude, very helpful. Thanks guys