0 votes
in PHP by

Given a variable $email containing the string user@example.com, which of the following statements would extract the string example.com?

A) substr($email, strpos($email, "@"));
B) strstr($email, "@");
C) strchr($email, "@");
D) substr($email, strpos($email, "@")+1);
E) strrpos($email, "@");

1 Answer

0 votes
by

substr($email, strpos($email, "@")+1);

...