note 94165 added to language.types.array

From: Date: Tue, 20 Oct 2009 17:55:36 +0000
Subject: note 94165 added to language.types.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-161912@lists.php.net to get a copy of this message
Just in case someone finds it usefull. If you want to capitalize the first letter of each word in the array you could: <?php $myarray = array("one","two","three","four","etc.."); $map = array_map('ucfirst', $myarray); $j = join(' , ', $map); echo $j; ?> This will return: One , Two , Three , Four , Etc.. Probably it's not worth of posting it, but just thought beginners might find it usefull. ---- Server IP: 213.249.64.162 Probable Submitter: 82.173.77.172 ---- Manual Page -- http://www.php.net/manual/en/language.types.array.php Edit -- https://master.php.net/note/edit/94165 Del: integrated -- https://master.php.net/note/delete/94165/integrated Del: useless -- https://master.php.net/note/delete/94165/useless Del: bad code -- https://master.php.net/note/delete/94165/bad+code Del: spam -- https://master.php.net/note/delete/94165/spam Del: non-english -- https://master.php.net/note/delete/94165/non-english Del: in docs -- https://master.php.net/note/delete/94165/in+docs Del: other reasons-- https://master.php.net/note/delete/94165 Reject -- https://master.php.net/note/reject/94165 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#161912) next »