Q. What will be the output of the following PHP code ?

Code:
<?php
$str  =  'Hello';
echo 'World{$str}PHP';
?>
  • (A) Hello
  • (B) PHP
  • (C) World{$str}PHP
  • (D) World
πŸ’¬ Discuss
βœ… Correct Answer: (C) World{$str}PHP

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
80443
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Mahesh Chandra
Publisher
πŸ“ˆ
96%
Success Rate