Write a regular expression to get the value xxx from the
string 'xxx@yyy.com'
Answer Posted / bipin
<?php
$string = 'xxx@yyy.com';
list($firstString,$secondString) = split('@',$string);
echo $firstString;
?>
| Is This Answer Correct ? | 9 Yes | 7 No |
Post New Answer View All Answers
What is difference between session and cookie in PHP?
Tell me which function gives us the number of affected entries by a query?
How to access a global variable inside a function?
What is the difference between query and inquiry?
Why php language is used?
What is a variable cost example?
What is difference between strstr() and stristr()?
What is the function of mysql_real_escape_string in php?
How to set session.gc_divisor properly?
What is the latest version of php?
Explain mixed and callback functions?
How does php session work?
What is return value in php?
How to know user has read the email-php?
How can we get ip address of a client in php?