MCQs
To run PHP code you need to have PHP and a web server, both IIS and Apache are web servers.You can choose either one according to your platform.
?: is known as ternary operator. If condition is true then the part just after the ? is executed else the part after : .
The integer value at the beginning of the original $total string is used in the calculation. However if it begins with anything but a numerical value, the value will be 0.
PHP treats strings in the same fashion as arrays, allowing for specific characters to be accessed via array offset notation.
echo(), print() and printf() all three can be used to output a statement onto the screen. The sprintf() statement is functionally identical to printf() except that the output is assigned to a string rather than rendered to the browser.
The (array) is a cast operator which is used for converting values from other data types to array.