Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
1
0
 
0
Language: PHP
Posted by: Zach Gover
Added: Sep 22, 2018 2:40 PM
Modified: Sep 22, 2018 3:28 PM
Views: 7
PHP Simple Array Mapping Callback
  1. array_map( function( $key, $val ) {
  2.     // ...
  3. }, array_keys( $arr1 ), $arr1 );