PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $input = [ ["id" => "123", "label" => "l1"], ["id" => "321", "label" => "l3"] ]; $result = array_walk(fn($item) => "{$item['id']} => {$item['label']}", $input); var_export($result);
Show:  
Copy Clear