Zend
200-530 · Question #512
Consider the following PHP script: <html> <head> <title> This is a test script. </title> </head> <body> <?php echo (int) ((0.1 + 0.6) * 10); ?> </body> </html> Zend 200-530 Exam What will be the…
The correct answer is D. 6. See the full explanation below for the reasoning.
Question
Consider the following PHP script: <html> <head> <title> This is a test script. </title> </head> <body> <?php echo (int) ((0.1 + 0.6) * 10); ?> </body> </html> Zend 200-530 Exam What will be the output of the above PHP script?
Options
- A8
- B6.999999
- C7
- D6
How the community answered
(22 responses)- A5% (1)
- B5% (1)
- C14% (3)
- D77% (17)
Community Discussion
No community discussion yet for this question.