How can we extract string 'abc.com' from a string
"http://info@abc.com" using regular expression of PHP
Answer Posted / nitesh kumar
you can use explode funciton
echo $site_array=end(explode("@","http://info@abc.com"));
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What are the encryption techniques in php?
Why php is used?
How can I prevent sql-injection in php?
What is psr in php?
Tell me how can you pass a variable by reference?
Explain what is the use of "echo" in php?
Explain mixed and callback functions?
Tell me can the value of a constant change during the script's execution?
Tell me what is use of in_array() function in php?
Explain me what is the importance of "method" attribute in a html form?
What is difference between readonly and constant?
What are php strings?
What does $globals means?
Tell me how can we change the maximum size of the files to be uploaded?
What is null value in php?