Correct Answer: Integer
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
Output of the following PHP 7.1 code snippet? - abstract class A_Class { abstract protected function name_P($name); } class Example extends A_Class { public function Name_P($name, $separator = '.') { if ($name == 'Mango') { $product = 'Fruit'; } elseif ($name == 'Carrot') { $product = 'Vegitable'; } else { $product =''; } return '{$name}{$separator} {$product}'; } } $class = new Example; echo $class->Name_P('Mango'), '\n'; echo $class->Name_P('Carrot'), '\n'; ?>
Output of the following PHP code? var_dump('pqrstu'[-2]); var_dump(strpos('ppqqrr','q', -3)); ?>
In relation to PHP 7.1 global space, prefixing a name with which of the following options specifies that the name is required from the global space even in the context of the namespace?
Carefully analyze the following program. 1. 2.class example 3.{ 4.static function check() 5.{ 6.echo "Check\n"; 7.} 8.function test() 9.{ 10.echo "Test\n"; 11.} 12.} 13.$f = new array("example", "check"); исправил:) $f = array( new example, "check"); 14.$f(); 15.$f = array(new example, test); исправил:) $f = array(new example, "test"); 16.$f(); 17.$f = "example::check"; 18.$f(); 19.?> The given program was supposed to produce the following output on execution. Check Test Check However, the program contains errors. Identify the line numbers that contain errors.
In relation to PHP 7.1 throwable interface, which option is used for getting a string representation of a thrown object?
How do you kill or destroy a session?
Which function is used to check type of array
How do you write 'Hello World'?
Correct way to include the file 'time.inc'?
What Does OOM mean?