which of the following components?
When working with the MVC paradigma, the business logic should be implemented in which of the
following components?
What function is used to retrieve all available information about a symbolic link?
What function is used to retrieve all available information about a symbolic link?
What is the return value of the following code?
What is the return value of the following code?
strpos(“me myself and I”, “m”, 2)
What is the output of the following code?
What is the output of the following code?
<code>
$first = “second”;
$second = “first”;
echo$$$first;
</code>
Which PHP configuration directive can be disabled to prevent this?
One common security risk is exposing error messages directly in the browser. Which PHP
configuration directive can be disabled to prevent this?
What is the error in the following declaration of a static class method?
What is the error in the following declaration of a static class method?
<code>
1 <?php
2 class car {
3 static $speeds = array(
4 ‘fast’,
5 ‘slow’,
6 ‘medium’,
7 );
8
9 static function getSpeeds()
10 {
11 return $this->speeds;
12 }
13 }
14 ?>
</code>
Would the following code catch a parse error?
Would the following code catch a parse error?
<code>
try{
echo$label
} catch (Exception $e) {
echo$e->getMessage();
}
</code>
What is the difference between isset() and other is_*() functions (is_alpha(), is_number(), etc.)?
What is the difference between isset() and other is_*() functions (is_alpha(), is_number(), etc.)?
What function should be used to escape command line arguments that are passed to commands executed from PHP?
What function should be used to escape command line arguments that are passed to commands
executed from PHP?
$_SERVER consists of data provided by the web server and is therefore trustworthy.
$_SERVER consists of data provided by the web server and is therefore trustworthy.