<?php
$bool = false;
$int = 0;
echo 'is ', var_export($bool, true), ' == ', var_export($int, true), ' ? ', var_export($bool == $int), "\n";
$bools = (string)$bool;
echo 'is ', var_export($bools, true), ' == ', var_export($bool, true), ' ? ', var_export($bools == $bool), "\n";
$int = (int)$str;
echo 'is ', var_export($int, true), ' empty? ', var_export(empty($int)), "\n";
preferences:
33.86 ms | 402 KiB | 5 Q