A guard clause version would be more readable

```php
if (empty($char)) {
   continue;
}
$decimal = octdec($char);
if ($decimal < 20 || $decimal > 127) {
    continue;
}
$converted .= chr($decimal);
```