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 / stalin raja.h

<?php
$string = 'xxx@yyy.com';
$sub = substr('$string',0,2);
echo $sub;
?>

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to break a file path name into parts?

931


What are php loops?

917


Which function gives us the number of affected entries by a query?

878


How is php different from other languages?

820


How to execute a php script from the command line?

1013


Do you know design patterns. List few?

906


How does php and apache work?

974


Is it possible to use com component in php?

929


Which is better get or post method?

871


What is use of count() function in php?

977


What is the best way to change the key without changing the value of a php array element?

918


How to remove duplicate values from array using php?

970


Is php front end?

872


What is the use of anonymous function in php?

932


Is not null in php?

897