<<< Previous question <<< Question ID#0705.md >>> Next question >>>
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 = "";
- A)
($human == $dog)
- B)
($human->name == $dog->name)
- C)
($human === $dog)
- D)
($human->name instanceof $dog->name)
Answer
Answer: A, B