<?php $str = 'string'; $offset = new stdClass(); $v1 = isset($str[$offset]) ? 'true' : 'false'; var_dump($v1); $v2 = $str[$offset] ?? 'false';
You have javascript disabled. You will not be able to edit any code.