What is the name of the key pointing to the domain name in the array returned by parse_url()?
What is the name of the key pointing to the domain name in the array returned by parse_url()?
What is the output of the following code: echo "1" + 2 * "0x02";
What is the output of the following code: echo “1” + 2 * “0x02”;
Which of the following superglobals does not contain data from the client?
Which of the following superglobals does not contain data from the client?
Which design pattern should you use for this scenario?
You are creating an application that repeatedly connects to a database to retrieve order data for
invoices. All data comes from the same database. In order to preserve resources, you have to
ensure that only one database connection should be used at any time. The code also has to open
as few new database connections as possible. Which design pattern should you use for this
scenario?
What is the output of the following code?
What is the output of the following code?
<code>
$a = 3;
switch($a) {
case1: echo ‘one’; break;
case2: echo ‘two’; break;
default: echo ‘four’; break;
case3: echo ‘three’; break;
}
</code>
Do constants have global scope or local scope?
Do constants have global scope or local scope?
Which of the following possibilities work?
You want to access the 3rd character of a string, contained in the variable $test. Which of the
following possibilities work?(Choose 2)
what does the 3rd parameter specify?
In the function setcookie() what does the 3rd parameter specify?
Which of the following functions can you use?
You want to test if a string matches a relatively complex pattern. Which of the following functions
can you use? (Choose 2)
What will the following code print?
What will the following code print?
<code>
echo addslashes(‘I am a <b>small</b> “HTML” string, which is \’invalid\'</u>.’);
</code>