Write a regular expression to get the value xxx from the
string 'xxx@yyy.com'
Answer Posted / bipin
<?php
$string = 'xxx@yyy.com';
list($firstString,$secondString) = split('@',$string);
echo $firstString;
?>
Is This Answer Correct ? | 9 Yes | 7 No |
Post New Answer View All Answers
How do I see how many pages per session in google analytics?
How values in arrays are indexed?
How be the result set of mysql handled in php?
Define soundex()?
What are the advantages of indexes in php?
Which software is used to run php programs?
How do I start a php session?
How to Pass JSON Data in a URL using CURL in PHP?
What is delimiter php?
What is purpose of @ in Php?
Where are the persistent cookies stored on your computer?
What is the use of friend function in php?
What is new keyword in php?
How can we automatically escape incoming data?
Is laravel better than codeigniter?