<?php
[5.5][0];
class ob {
private $b = false;
public function __construct($b=false) {
if ($b) $this->b = $b;
}
public function __toString(){
return $this->b?'1':'0';
}
}
$ob = new ob();
$ob2 = new ob(true);
if (true == (string)$ob) echo 'ob/';
if (true == (string)$ob2) echo 'ob2/';