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
Explain Traits in PHP?
Explain different sorting function in php?
Can we override static method?
How do I check if a given variable is empty?
How can you associate a variable with a session?
Why is overriding runtime?
Explain me how failures in execution are handled with include() and require() functions?
What are the data types in php?
Why print_r is used in php?
How to turn on the session support in php?
What is an abstract class in php?
Is php a backend?
How to convert numbers to strings in php?
How could I install codeignitor ?
Tell me how can we determine whether a php variable is an instantiated object of a certain class?