&lt;?php$x = 5;function fun&#40;&#41;&#123;    $x = 10;    echo &quot;$x&quot;;&#125;fun&#40;&#41;;echo &quot;$x&quot;;?&gt;
A. 0
B. 105
C. 510
D. Error
Answer:A
&lt;?php$x = 5;function fun&#40;&#41;&#123;    $x = 10;    echo &quot;$x&quot;;&#125;fun&#40;&#41;;echo &quot;$x&quot;;?&gt;
A. 0 B. 105 C. 510 D. Error
Explanation: First when the function is called variable x is initialised to 10 so 10 is printed later the global value 5 is printed.