12m 00s
ID: 460
Is this statement true or false? "Methods declared as static must be called statically"
ID: 284
Which of the following statements is true about deleting a client's cookie?
ID: 187
Which of the following is used to retrieve the name of an XML element from a SimpleXMLElement object?
getNamespaces()
getDefined()
getCall()
getName()
ID: 705
Considering the following code which of the statements below is true ?
class entity { public $name; } $human = new entity(); $dog = new entity(); $human->name = 0; $dog->name = "";
($human === $dog)
($human->name instanceof $dog->name)
($human->name == $dog->name)
($human == $dog)
ID: 47
What is the length of the hash generated by the crc32() crypto function?
ID: 229
Consider a string in the following format:
a*bcd/a.d
You want to perform regular expression in this string; however, you are unable to do this since the string contains special characters. You can make this string PCRE compatible if you convert this string in the following format:
preg_split()
explode()
preg_match()
preg_quote()
ID: 632
What is the output of the following script?
class ClassOne { protected $a = 10; public function changeValue($b) { $this->a = $b; } } class ClassTwo extends ClassOne { protected $b = 10; public function changeValue($b) { $this->b = 10; parent::changeValue($this->a + $this->b); } public function displayValues() { print "a: {$this->a}, b: {$this->b}\n"; } } $obj = new ClassTwo(); $obj->changeValue(20); $obj->changeValue(10); $obj->displayValues();
ID: 656
Creating new nodes in XML documents using PHP can be done using which XML/PHP 5 technologies?
ID: 801
What is the ouput of the following code?
class Magic { public $a = "A"; protected $b = ["a" => "A", "b" => "B", "c" => "C"]; protected $c = [1, 2, 3]; public function __get($v) { echo "$v,"; return $this->b[$v]; } public function __set($var, $val) { echo "$var: $val,"; return $this->$var = $val; } } $m = new Magic(); echo $m->a . "," . $m->b . "," . $m->c . ","; $m->c = "CC"; echo $m->a . "," . $m->b . "," . $m->c;
ID: 54
Which of the following is NOT a strongly typed language?