Q. What will be the output?

Code:
$a = 'Hello World';
echo substr($a, 6);
  • (A) Hello
  • (B) World
  • (C) Hello World
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) World
Explanation: Substring starting from index 6.
Explanation by: Roshan
Substring starting from index 6.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
20
Total Visits
πŸ“½οΈ
4 mo ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
97%
Success Rate