Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is oops php?

943


How to get the IP address of the client/user in PHP?

948


Explain array_uintersect()?

992


How the values are ordered in an array?

1075


What is difference between mysqli and mysql?

1045


Can you specify the "new line" character in single-quoted strings?

946


How would you declare a function that receives one parameter name hello?

955


What is php rest api?

999


Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?

936


Which function will you use to create an array?

949


for image work which library?

949


What are static variables in php?

1003


What is mysqli_real_escape_string?

982


How can you send email in php?

954


Which cryptographic functions in php returns the longest hash value?

979