What is the output of the following code?
What is the output of the following code? echo 0x33, ‘ monkeys sit on ‘, 011, ‘ trees.’;
Which of the following possibilites work?
You want to access the 3rd character of a string, contained in the variable $test. Which of
the following possibilites work? (Choose 2)
Which sentence describes the following regular expression match? preg_match(‘/^\d+(?:\.[0-9]+)?
Which sentence describes the following regular expression match?
preg_match(‘/^\d+(?:\.[0-9]+)?$/’, $test);
Which functions would you use?
You need to escape special characters to use user input inside a regular expression. Which
functions would you use? (Choose 2)
How many elements does the $matches array contain after the following function call is performed? preg_match(&
How many elements does the $matches array contain after the following function call is
performed? preg_match(‘/^(\d{1,2}([a-z]+))(?:\s*)\S+ (?=201[0-9])/’, ’21st March 2014′,
$matches);
How many elements does the array $matches from the following code contain?
How many elements does the array $matches from the following code contain? $str = “The
cat sat on the roof of their house.”; $matches = preg_split(“/(the)/i”, $str, -1,
PREG_SPLIT_DELIM_CAPTURE);
how can all of the parameters provided via GET be accessed in a form of a string?
Given the default PHP configuration, how can all of the parameters provided via GET be
accessed in a form of a string?
What is the length of a string returned by: md5(rand(), TRUE);
What is the length of a string returned by: md5(rand(), TRUE);
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 return value of the following code: substr_compare("foobar", "bar", 3);
What is the return value of the following code: substr_compare(“foobar”, “bar”, 3);