<?php declare(strict_types=1); class x { function __toString() { return 'abc'; } } $a = new x; $b = 1.23; printf('%s %d', $a, $b); echo PHP_EOL; echo "$a ". (int) $b;
You have javascript disabled. You will not be able to edit any code.