<?php $string = ' 0 '; $x = str_replace(' ', '', $string) != ''; $y = trim($string) != ''; $z = trim($string) ? true : false; $z1 = empty(trim($string)); var_dump([$x, $y, $z, $z1]);
You have javascript disabled. You will not be able to edit any code.