Zend
200-530 · Question #415
Consider the following PHP script: <html> <head> <title> Zend 200-530 Exam This is a test script. </title> </head> <body> <?php echo (int) ((0.1 + 0.7) * 10); ?> </body> </html> What will be the…
The correct answer is B. 7. See the full explanation below for the reasoning.
Question
Consider the following PHP script: <html> <head> <title> Zend 200-530 Exam This is a test script. </title> </head> <body> <?php echo (int) ((0.1 + 0.7) * 10); ?> </body> </html> What will be the output of the PHP script?
Exhibit
Options
- AThe PHP script will return an error message.
- B7
- C10
- D8
How the community answered
(31 responses)- A16% (5)
- B74% (23)
- C6% (2)
- D3% (1)
Community Discussion
No community discussion yet for this question.
