Question:Given the string: $var = "john@php.net"; Which of the following will extract the TLD (top level domain) of ".net" from the string? 

A strstr($var, strpos($var, ".")); 

B substr($var, strpos($var, "@")); 

C substr($var, strstr($var, ".")); 

D substr($var, strpos($var, ".") + 1); 

E substr($var, strpos($var, ".")); 

+ Answer
+ Report
Total Preview: 790

Copyright © 2025. Powered by Intellect Software Ltd