PrepAway - Latest Free Exam Questions & Answers

which of the following is NOT a valid control structures (Choose two)?

In PHP, which of the following is NOT a valid control structures (Choose two)?

PrepAway - Latest Free Exam Questions & Answers

A.
if

B.
while

C.
for

D.
foreach

E.
switch

F.
as

G.
asif

Explanation:

PHP offers an alternative syntax for some of its control structures; namely, if, while, for, foreach ,
and switch. In each case, the basic form of the alternate syntax is to change the opening brace to
a colon (:) and the closing brace to endif ;, endwhile ;, endfor ;, endforeach ;, or endswitch ;,
respectively.


Leave a Reply