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 difference between session and cookie in PHP?

1023


Tell me which function gives us the number of affected entries by a query?

1044


How to access a global variable inside a function?

1053


What is the difference between query and inquiry?

959


Why php language is used?

1023


What is a variable cost example?

1097


What is difference between strstr() and stristr()?

1167


What is the function of mysql_real_escape_string in php?

980


How to set session.gc_divisor properly?

1098


What is the latest version of php?

1091


Explain mixed and callback functions?

1209


How does php session work?

1031


What is return value in php?

1085


How to know user has read the email-php?

999


How can we get ip address of a client in php?

1013