<?php declare(strict_types=1); error_reporting(E_ALL); $b = []; // original result var_dump(!trim(((string)($b['b'] ?? '')))); // applied change to replace above leading to different result var_dump(trim(((string)($b['b'] ?? ''))) !== ''); // replacement with same result would be this, // but it's not clear if the original check has // been ment to be that kind of check and was // obsured away. var_dump(trim(((string)($b['b'] ?? ''))) === '');
You have javascript disabled. You will not be able to edit any code.