Which operation does this code perform?

Ricardo wrote the following PHP code for his Web site:
if ($y != 13) echo (“You are lucky”);
Which operation does this code perform?

Ricardo wrote the following PHP code for his Web site:
if ($y != 13) echo (“You are lucky”);
Which operation does this code perform?

A.
If $y is less than 13, then the string “You are lucky” is displayed.

B.
The number 13 is displayed whenever the code is run.

C.
The code increments the value of $y by 13.

D.
If $y does not equal 13, then the string “You are lucky” is displayed.



Leave a Reply 0

Your email address will not be published. Required fields are marked *