πŸ“Š PHP
Q. What will be the output of the following PHP code?
Code:
<?php
$url = "ruchi@sharma.com";
echo ltrim(strstr($url, "@"),"@");
?>
  • (A) ruchi@sharma.com
  • (B) ruchisharma.com
  • (C) ruchi.com
  • (D) sharma.com
πŸ’¬ Discuss
βœ… Correct Answer: (D) sharma.com

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
210
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ruchi Sharma
Publisher
πŸ“ˆ
85%
Success Rate