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
How can you make a connection with mysql server using php?
How many types of session are there?
What are computer variables?
What is csrf cookie?
How to join multiple strings stored in an array into a single string?
Which cryptographic extension provide generation and verification of digital signatures?
Why do we use interface in php?
How to replace a substring in a given string?
What is composer install?
Is python similar to php?
Describe the security vulnerability of PHP?
Is php class name case sensitive?
How is it possible to set an infinite execution time for php script?
Do you know what's the difference between __sleep and __wakeup?
What is the difference between fopen() and fclose()?