Correct Answer: print substr($email, strpos($email, ‘@’) + 1);
Explanation:
Note: This Question is unanswered, help us to find answer for this one
PHP 5 Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More PHP 5 MCQ Questions
How to declare an interface?
What is the new syntax of array ?
Which functions allows you to store session data in a database?
What is wrong with the following code? setValue(10); $a_copy->setValue(20); ?>
Add five days to a PHP5 date-object like this: $date_object = date_create('1/18/2015');
$bar = <<< 1;Anna;eats mangoes 2;Mark;eats apples EOF; function bar_parser($bar) { foreach (explode('\n', $bar) as $I) { $foo = explode(';', $I); $id = array_shift($foo); yield $id => $foo; } } foreach (bar_parser($bar) as $id => $foo) { echo '$id:\n'; echo' $foo[0]\n'; echo' $foo[1]\n'; } ?>
Which code statement should replace ??? to obtain 12345 as output? function recursive($var){ echo $var; if($var < 5){ ??? } } $a = 1; recursive($a); ?>
var $example = var $array = array('My name is A.', 'My name is B.', 'My name is C.'); var $r = 'My name is r.'; } $f = new f(); $example = 'example'; $b = array('f', 'example', 'b', 'c'); echo $f->$example. '\n'; echo $f->{$b[1]} . '\n'; $start = 'exa'; $end = 'mple'; echo $f->{$start. $end}. '\n'; $array = 'array'; echo $f->{$array[1]}. '\n'; ?>
Which option can be the key of an array?
class Example { public function abcFunction() { return Closure::fromCallable([$this, } private function privateFunction($param) { var_dump($param); } } $expFunc = (new Example)->abcFunction(); $expFunc('My New Example');?>