<?php class A{ public function __tostring(){ return "12.2"; } } $x = new A; var_dump((int)(string) $x);
You have javascript disabled. You will not be able to edit any code.