<?php $x = (object) [false]; $x->{0} = true; $x = (array) $x; echo json_encode(current($x));
You have javascript disabled. You will not be able to edit any code.