List Info

Thread: note 78427 added to function.strtoupper




note 78427 added to function.strtoupper
user name
2007-10-11 09:20:53
accents convertion trick :

<?php
		
	function ucfirstHTMLentity($matches){
		return
"&".ucfirst(strtolower($matches[1])).";&q
uot;;
	}
	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  -- h
ttps://master.php.net/note/delete/78427/integrated
Del: useless     -- http
s://master.php.net/note/delete/78427/useless
Del: bad code    -- htt
ps://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     -- http
s://master.php.net/note/delete/78427/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/78427
Reject      -- https://mast
er.php.net/note/reject/78427
Search      -- https://
master.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )