12m 00s
ID: 257
Which of the following joins retrieves all rows from one table and only the matching rows from the joined table?
ID: 213
Which function is used to allow a parser to be used within an object?
xml_set_character_data_handler()
xml_set_object()
xml_parser_set_option()
xml_parse_into_struct()
ID: 400
The following script defines a function called buildUrl(), which is intended to be a crude way of normalizing URLs. What line of code must be inserted into buildUrl() to ensure $url1 and code $url2 are both equal to http://phpriot.com/quiz/?
function buildUrl($domain, $path) { // insert line of code here return $ret; } $domain1 = 'http://phpriot.com/'; $domain2 = 'http://phpriot.com'; $path = '/quiz/'; $url1 = buildUrl($domain1, $path); $url2 = buildUrl($domain2, $path);
$ret = $domain . trim($path, '/');
$ret = $domain . '/' . ltrim($path, '/');
$ret = rtrim($domain, '/') . '/' . ltrim($path, '/');
$ret = $domain . ltrim($path, '/');
ID: 304
Which of the following functions will you use to copy data between two opened files?
ID: 283
You have the following code in the welcome.html file:
<form action="welcome.php" method="post"> Your Name: <input type="text" name="fname" /> Your Girl Friend Name: <input type="text" name="fname" /> <input type="submit" /> </form>
The PHP code of the welcome.php file is as follows:
ID: 519
When opening a file in writing mode using the FTP handler, what must be done so that the file will still be written to the server in the event it previously exists?
ID: 349
What is the output of the following PHP script?
for ($i = 0; $i < 3; $i++) { for ($j = 3; $j > 0; $j--) { if ($i == $j) { break; } echo $j; } }
ID: 666
When checking to see if two variables contain the same instance of an object, which of the following comparisons should be used?
ID: 228
You run the following PHP script:
$x = 'john'; echo substr_replace($x, 'jenny', 0, 0);
ID: 544
Removing undesired markup tags from input can best be done using which function?