note 118191 added to function.sprintf

From: Date: Fri, 23 Oct 2015 14:35:23 +0000
Subject: note 118191 added to function.sprintf
Groups: php.notes 
Request: Send a blank email to php-notes+get-204009@lists.php.net to get a copy of this message
Fix for sprintfn function for named arguments (http://php.net/manual/en/function.sprintf.php#94608): Change the first line from: $arg_nums = array_slice(array_flip(array_keys(array(0 => 0) + $args)), 1); to: $arg_nums = array_keys($args); array_unshift($arg_nums, 0); $arg_nums = array_flip(array_slice($arg_nums, 1, NULL, true)); ---- Server IP: 72.52.91.14 Probable Submitter: 109.170.159.240 ---- Manual Page -- http://php.net/manual/en/function.sprintf.php Edit -- https://master.php.net/note/edit/118191 Del: integrated -- https://master.php.net/note/delete/118191/integrated Del: useless -- https://master.php.net/note/delete/118191/useless Del: bad code -- https://master.php.net/note/delete/118191/bad+code Del: spam -- https://master.php.net/note/delete/118191/spam Del: non-english -- https://master.php.net/note/delete/118191/non-english Del: in docs -- https://master.php.net/note/delete/118191/in+docs Del: other reasons-- https://master.php.net/note/delete/118191 Reject -- https://master.php.net/note/reject/118191 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#204009) next »