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 enable parsing?

1115


Who developed php?

1045


Explain me the difference between include and require?

999


What is difference between web service and api?

1104


Can we use php variable in javascript?

1065


Does php support multiple inheritances?

1054


How to create and destroy cookies in php?

948


What is pdo in php why use?

990


How does csrf attack work?

1074


Which is the correct way to check if a session has already been started ?

1031


What is regex in html?

970


Which function would you use to replace a record in a database in php?

1087


Is php used in 2019?

1042


What is needed to be able to use image function?

1089


Tell me what types of loops exist in php?

1197