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

Explain Traits in PHP?

934


Explain different sorting function in php?

1056


Can we override static method?

958


How do I check if a given variable is empty?

926


How can you associate a variable with a session?

1008


Why is overriding runtime?

985


Explain me how failures in execution are handled with include() and require() functions?

1008


What are the data types in php?

1012


Why print_r is used in php?

945


How to turn on the session support in php?

955


What is an abstract class in php?

937


Is php a backend?

962


How to convert numbers to strings in php?

997


How could I install codeignitor ?

2190


Tell me how can we determine whether a php variable is an instantiated object of a certain class?

998