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
What are php loops?
What are the encryption techniques in php?
What does session start do in php?
How to write a program to make chess?
What does $_files means?
What is good average session duration?
What is the special meaning of __sleep and __wakeup?
What are the ways to include file in php?
How do you execute a php script from the command line?
Php being an open source is there any support available to it?
Why use php artisan serve?
How we get browser details of clients machine?
What is the difference between the functions strstr() and stristr()?
What is difference between html and php?
Write down the code for saving an uploaded file in PHP.