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
How to break a file path name into parts?
What are php loops?
Which function gives us the number of affected entries by a query?
How is php different from other languages?
How to execute a php script from the command line?
Do you know design patterns. List few?
How does php and apache work?
Is it possible to use com component in php?
Which is better get or post method?
What is use of count() function in php?
What is the best way to change the key without changing the value of a php array element?
How to remove duplicate values from array using php?
Is php front end?
What is the use of anonymous function in php?
Is not null in php?