majkel
1
Is there any library that warps around common quirks into safe function calls ?
For example instead of writing boilerplate code like these
$val = is_array($arr) && isset($arr[$a]) && is_array($arr[$a]) && isset($arr[$a][$b]) ? $arr[$a][$b] : '';
I could just use
$val = arr_get($arr, "$a.$b", '');
salathe
3
Of course there are! One such example is the Arr::get()
method from the Ohanzee components. .
1 Like
system
Closed
4
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.