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


Please Help Members By Posting Answers For Below Questions

How do I see how many pages per session in google analytics?

688


How values in arrays are indexed?

742


How be the result set of mysql handled in php?

827


Define soundex()?

662


What are the advantages of indexes in php?

738






Which software is used to run php programs?

668


How do I start a php session?

691


How to Pass JSON Data in a URL using CURL in PHP?

720


What is delimiter php?

712


What is purpose of @ in Php?

810


Where are the persistent cookies stored on your computer?

738


What is the use of friend function in php?

695


What is new keyword in php?

685


How can we automatically escape incoming data?

667


Is laravel better than codeigniter?

738