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>
Which session function can help to avoid session fixation?
Which session function can help to avoid session fixation?