Basic quiz - PHP

Basic PHP quiz that covers PHP syntax, data types, control flow and common PHP methods.


Restart the quiz

Question:

What value is printed for "a" below?

<?php
    $a = 1;
    function Test()
    {
        echo "a = $a";
    }
    Test();
?>

Answers:




© 2017 QuizBucket.org