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_map(function($value) use ($input) { return sprintf('Key "%s" has value "%s".', key($input), $value); }, $input); var_export($result);
Show:  
Copy Clear