- mt_rand: documentation ( source)
<?php
if (mt_rand(0, 1) === 0) {
class Foo {
static function bar() {
echo 'First bar';
}
}
} else {
class Foo {
static function bar() {
echo 'Second bar';
}
}
}
Foo::bar();