note 123779 added to function.array-map

From: Date: Mon, 15 Apr 2019 06:11:12 +0000
Subject: note 123779 added to function.array-map
Groups: php.notes 
Request: Send a blank email to php-notes+get-210602@lists.php.net to get a copy of this message
Simple obvious thing to keep in mind: the number of arrays passed as arguments to an array_map() function should correspond to the number of parameters defined in the callback otherwise,say if you write a function with n parameters and supply m arrays to the array_map such that m>n,array_map() ignores params at n+1 onwards. but no error or notice is issued. Of course supplying fewer arguments than declared in the function declaration throws an ArgumentCountError ---- Server IP: 208.43.231.9 Probable Submitter: 82.199.130.26 (proxied: 197.248.191.102) ---- Manual Page -- http://php.net/manual/en/function.array-map.php Edit -- https://master.php.net/note/edit/123779 Del: integrated -- https://master.php.net/note/delete/123779/integrated Del: useless -- https://master.php.net/note/delete/123779/useless Del: bad code -- https://master.php.net/note/delete/123779/bad+code Del: spam -- https://master.php.net/note/delete/123779/spam Del: non-english -- https://master.php.net/note/delete/123779/non-english Del: in docs -- https://master.php.net/note/delete/123779/in+docs Del: other reasons-- https://master.php.net/note/delete/123779 Reject -- https://master.php.net/note/reject/123779 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#210602) next »