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

3 Comments on “Do constants have global scope or local scope?

  1. Anatolii says:

    YES! A!!!!

    In manual:

    Like superglobals, the scope of a constant is global. You can access constants anywhere in your script without regard to scope.




    0



    0

Leave a Reply

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