<?php $array = ['a' => 1, 'c' => 0]; function neverEmpty($firstChoice, $alternative) { return empty($firstChoice) ? $alternative : $firstChoice; } foreach (['a', 'b', 'c'] as $k) { var_export(neverEmpty($array[$k], 'nope')); echo "\n"; }
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`