note 78427 added to function.strtoupper

From: Date: Thu, 11 Oct 2007 14:20:53 +0000
Subject: note 78427 added to function.strtoupper
Groups: php.notes 
Request: Send a blank email to php-notes+get-131306@lists.php.net to get a copy of this message
accents convertion trick : <?php function ucfirstHTMLentity($matches){ return "&".ucfirst(strtolower($matches[1])).";"; } function fullUpper($str){ $subject = strtoupper(htmlentities($str, null, 'UTF-8')); $pattern = '/&([A-Z]+);/'; return preg_replace_callback($pattern, "ucfirstHTMLentity", $subject); } print fullUpper($_REQUEST["txt"]); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 90.2.121.205 ---- Manual Page -- http://www.php.net/manual/en/function.strtoupper.php Edit -- https://master.php.net/note/edit/78427 Del: integrated -- https://master.php.net/note/delete/78427/integrated Del: useless -- https://master.php.net/note/delete/78427/useless Del: bad code -- https://master.php.net/note/delete/78427/bad+code Del: spam -- https://master.php.net/note/delete/78427/spam Del: non-english -- https://master.php.net/note/delete/78427/non-english Del: in docs -- https://master.php.net/note/delete/78427/in+docs Del: other reasons-- https://master.php.net/note/delete/78427 Reject -- https://master.php.net/note/reject/78427 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131306) next »