note 126243 added to function.array-map

From: Date: Thu, 15 Jul 2021 12:07:22 +0000
Subject: note 126243 added to function.array-map
Groups: php.notes 
Request: Send a blank email to php-notes+get-216606@lists.php.net to get a copy of this message
Filling in a closure (attention: use with constants only). <?php $test_array = array("first_key" => "first_value", "second_key" => "second_value"); $c = "me"; array_walk($test_array, function(&$a, $b) use ($c) { $a = "$b loves $a loves $c"; }); var_dump($test_array); ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.242 (proxied: 213.208.196.134) ---- Manual Page -- https://php.net/manual/en/function.array-map.php Edit -- https://main.php.net/note/edit/126243 Del: integrated -- https://main.php.net/note/delete/126243/integrated Del: useless -- https://main.php.net/note/delete/126243/useless Del: bad code -- https://main.php.net/note/delete/126243/bad+code Del: spam -- https://main.php.net/note/delete/126243/spam Del: non-english -- https://main.php.net/note/delete/126243/non-english Del: in docs -- https://main.php.net/note/delete/126243/in+docs Del: other reasons-- https://main.php.net/note/delete/126243 Reject -- https://main.php.net/note/reject/126243 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#216606) next »