note 69873 added to function.explode

From: Date: Sun, 24 Sep 2006 22:18:23 +0000
Subject: note 69873 added to function.explode
Groups: php.notes 
Request: Send a blank email to php-notes+get-117541@lists.php.net to get a copy of this message
Since people are posting Proper case functions in this page, here's my version. function strtopropper($str) { $mflag = false; for($x=0;$x<strlen($str);$x++) { if(preg_match('/\\s/', $str[$x])) { $mflag=true; continue; } if((ctype_alpha($str[$x]) && ($mflag || $x==0))) { $str[$x] = strtoupper($str[$x]); $mflag = false; } } return $str; } ---- Server IP: 216.235.15.211 Probable Submitter: 154.20.199.217 ---- Manual Page -- http://www.php.net/manual/en/function.explode.php Edit -- https://master.php.net/note/edit/69873 Del: integrated -- https://master.php.net/note/delete/69873/integrated Del: useless -- https://master.php.net/note/delete/69873/useless Del: bad code -- https://master.php.net/note/delete/69873/bad+code Del: spam -- https://master.php.net/note/delete/69873/spam Del: non-english -- https://master.php.net/note/delete/69873/non-english Del: in docs -- https://master.php.net/note/delete/69873/in+docs Del: other reasons-- https://master.php.net/note/delete/69873 Reject -- https://master.php.net/note/reject/69873 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117541) next »