InterviewSolution
Saved Bookmarks
| 1. |
Use the following script to answer the questions that follow:<? php$A = 10;function Exam(){$B = 20 ;Work();}function Work()$A=$A+5 ;Exam();?>(i) How many functions are used in the above code snippet? Name them.(ii) What is the scope of variables $A and $B? |
|
Answer» (i) Two functions have been used namely Exam() and Work() (ii) Variable $A has global scope and variable $B has local scope. |
|