note 124285 added to function.array-change-key-case

From: Date: Thu, 10 Oct 2019 15:30:00 +0000
Subject: note 124285 added to function.array-change-key-case
Groups: php.notes 
Request: Send a blank email to php-notes+get-212573@lists.php.net to get a copy of this message
I improve the array_change_key_case_recursive function ,let it can lowercase or uppercase keys function array_change_key_case_recursive($arr, $case = CASE_LOWER) { return array_map(function($item) use($case) { if(is_array($item)) $item = array_change_key_case_recursive($item, $case); return $item; },array_change_key_case($arr, $case)); } ---- Server IP: 208.43.231.9 Probable Submitter: 119.81.81.244 (proxied: 111.198.240.119) ---- Manual Page -- http://php.net/manual/en/function.array-change-key-case.php Edit -- https://master.php.net/note/edit/124285 Del: integrated -- https://master.php.net/note/delete/124285/integrated Del: useless -- https://master.php.net/note/delete/124285/useless Del: bad code -- https://master.php.net/note/delete/124285/bad+code Del: spam -- https://master.php.net/note/delete/124285/spam Del: non-english -- https://master.php.net/note/delete/124285/non-english Del: in docs -- https://master.php.net/note/delete/124285/in+docs Del: other reasons-- https://master.php.net/note/delete/124285 Reject -- https://master.php.net/note/reject/124285 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#212573) next »