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 do you compare strings in java?
What is the interface in php?
How to find length of an array in php ?
What type of operation is needed when passing values through a form or an url?
What is php crud api?
How can we calculate the similarity between two strings?
What does the unlink() function means?
How to access standard error stream in PHP?
Do you know what is the function func_num_args() used for?
How to include a file to a PHP page?
What is difference between include,require,include_once and require_once()?
Which functions are used to count the total number of array elements in php?
Is gender a dependent variable?
What is string and its function?
Tell me how to find the position of the first occurrence of a substring in a string?