PHP – Get bool to echo false when false October 15, 2022 by Tarik echo $bool_val ? 'true' : 'false'; Or if you only want output when it’s false: echo !$bool_val ? 'false' : '';