PHP Questions & Answers – Basics – 2
PHP Questions & Answers – Basics – 2
This set of PHP multiple choice questions and answers concentration on PHP basics. It will be excellent for anyone learning PHP Basics and groundwork
1. What will be the output of the following PHP code?
<?php $color = “maroon”; $var = $color[2]; echo “$var”; ?> a) a b) Error c) $var d) r View Answer
Answer: d Explanation:PHP treats strings in the same fashion as arrays, allowing for specific…
View On WordPress
















