PrepAway - Latest Free Exam Questions & Answers

Do constants have global scope or local scope?

Do constants have global scope or local scope?

PrepAway - Latest Free Exam Questions & Answers

A.
They have global scope

B.
They have local scope

C.
They have both global and local scope

D.
They have neither global nor local scope

One Comment on “Do constants have global scope or local scope?

  1. sevshum says:

    From php manual:
    Like superglobals, the scope of a constant is global. You can access constants anywhere in your script without regard to scope. For more information on scope, read the manual section on variable scope.




    0



    0

Leave a Reply

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