Question: Al You are given the following PHP script Ala.php. Line File: Ala.php 1. 2 . 10 html>

Al You are given the following PHP script Ala.php. Line File: Ala.php 1. 2 . (a) Write the execution output of Ala.php. [3 marks] (b) At line no. 5, after the keyword continue is replaced by break, write the execution output of Ala.php. [2 marks] (c) The PHP script Alb.php should produce the following execution output (Figure Al). Q 127.0.0.1/A1b.php The original string: reverse The reversed string: esrever Figure Al Implement the function reverse which reverses the order of the characters in a given string. You are not allowed to use the PHP built-in function strrev(). Hint : [5 marks] $s [ $pos ] will return the character at position $pos of the string $s. Line File: Alb.php 1 . 2. 10 html>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
