method toGroups documentation in bbn\X
Converts an indexed array into a numeric array where the original index is a property.
function(array $arr, $keyname = 'value', $valname = 'text')
{
$r = [];
foreach ($arr as $k => $v) {
$r[] = [$keyname => $k, $valname => $v];
}
return $r;
}
Converts an indexed array into a numeric array where the original index is a property. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions