The document discusses various topics related to PHP certification including:
1) The steps needed to become PHP certified including learning well-known technologies and studying at your own pace from home.
2) An overview of bitwise operations in PHP like AND, OR, XOR, right and left shifting.
3) Details on object oriented programming concepts in PHP like late static binding, object cloning, and inheritance.
4) Functions for sorting and comparing arrays in PHP like sort, rsort, asort, and usort.
5) Stream functions for input/output like file_get_contents and fopen.
27. a bitwise operation operates on one or more
bit patterns or binary numerals at the level of
their individual bits.
It is a fast, primitive action directly supported
by the processor, and is used to manipulate
values for comparisons and calculations
59. class A {
public static function who() {
echo __CLASS__;
}
public static function test() {
self::who();
}
}
class B extends A {
public static function who() {
echo __CLASS__;
}
}
B::test();
60. class A {
public static function who() {
echo __CLASS__;
}
public static function test() {
static::who();
}
}
class B extends A {
public static function who() {
echo __CLASS__;
}
}
B::test();
62. class A {
public $name;
}
$a = new A();
$b = clone $a;
var_dump($a == $b);
63. class A {
public $name;
}
$a = new A();
$a->name = 'Ana';
$b = clone $a;
$b->name = 'Clark';
var_dump($a == $b);
64. class B {
public $lastName;
}
class A {
public $name;
public $lastName;
public function __construct()
{
$this->lastName = new B();
}
}
$a = new A();
$a->lastName->lastName = 'River';
$b = clone $a;
$b->lastName->lastName = 'Dom';
var_dump($a == $b);