[php] Detecting negative numbers