How can we extract string 'abc.com' from a string
"http://info@abc.com" using regular expression of PHP
Answer Posted / sameer joshi
You can do like $site_array=explod("@","http://info@abc.com");
$site_addr=$sitr_array[1];
$site_addr will get the value as abc.com
| Is This Answer Correct ? | 13 Yes | 7 No |
Post New Answer View All Answers
Is php easy language to learn?
What are getters and setters and why are they important?
How to replace a substring in a given string in php?
What are new features in php 7?
How do you call a constructor for a parent class?
What are the steps for the payment gateway processing?
How to call javascript function in php on button click?
What is ci framework in php?
What is zend studio for?
How to get number of elements in an array?
How to track no of user logged in?
Write a program in php to check whether a number is prime or not?
What are hooks in php?
What are computer variables?
How can you get the size of an image in PHP?