adplus-dvertising
frame-decoration

Question

In PHP6 function is defined once in a script and then it is available everywhere in script which means that?

a.

The function has local scope

b.

The function has restricted scope

c.

The function has global scope

d.

None of them

Posted under PHP

Answer: (c).The function has global scope

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. In PHP6 function is defined once in a script and then it is available everywhere in script which means that?