Which of the following data types is implicitly passed by reference in PHP 5 while it is passed by value in PHP 4?
Would the following code catch a parse error?
try {
echo $label
} catch (Exception $e) {
echo $e->getMessage();
}
Given the default PHP configuration, how can all of the parameters provided via GET be accessed in a form of a string?
Is the following code piece E_STRICT compliant?
final class Testing {
var $test = 0;
public function tester() {
return "Tested!";
}}
How to read a single line, no matter how long from an file opened in the example below?
$fp = fopen("my_file.txt", "w");
Which string will be returned by the following function call?
$test = '/etc/conf.d/wireless';
substr($test, strrpos($test, '/'));
What will the following code print?
echo addslashes('I am a small "HTML" string, which is
\'invalid\'.');
What will the following code piece print?
echo strtr('Apples and bananas', 'ae', 'ea')