How many array elements will be found in the return value of: split(".", "A.B.C")
How many array elements will be found in the return value of:
split(“.”, “A.B.C”)
How do you allow the caller to submit a variable number of arguments to a function?
How do you allow the caller to submit a variable number of arguments to a function?
What is the output of the following code?
What is the output of the following code?
<code>
1 <?php
2 function append($str)
3 {
4 $str = $str.’append’;
5 }
6
7 function prepend(&$str)
8 {
9 $str = ‘prepend’.$str;
10 }
11
12 $string = ‘zce’;
13 append(prepend($string));
14 echo $string;
15 ?>
</code>
which HTTP headers were sent inside a script be determined?
How can the line on which HTTP headers were sent inside a script be determined?
you need to process the values of columns in a database, you should:
When you need to process the values of columns in a database, you should:
What visibility denies access to properties and methods outside of the class?
What visibility denies access to properties and methods outside of the class?
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?