0 votes
in PHP by

Given a variable $email containing the string [email protected], 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);

Related questions

+1 vote
asked Mar 19, 2020 in PHP by DavidAnderson
0 votes
asked Jun 23, 2019 in PHP by SakshiSharma
...