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 enable parsing?
Who developed php?
Explain me the difference between include and require?
What is difference between web service and api?
Can we use php variable in javascript?
Does php support multiple inheritances?
How to create and destroy cookies in php?
What is pdo in php why use?
How does csrf attack work?
Which is the correct way to check if a session has already been started ?
What is regex in html?
Which function would you use to replace a record in a database in php?
Is php used in 2019?
What is needed to be able to use image function?
Tell me what types of loops exist in php?