1.

What should be the correct syntax to write a PHP code?(a) < php>(b) < ? php?>(c) (d) This question was posed to me during an online exam.Question is from Basics in chapter Basics of PHP of PHP

Answer»

The correct option is (c) ?>

The explanation is: EVERY section of PHP code STARTS and ENDS by TURNING on and off PHP tags to let the SERVER know that it needs to execute the PHP in between them.



Discussion

No Comment Found