note 34491 added to function.strtoupper

From: Date: Tue, 29 Jul 2003 07:14:36 +0000
Subject: note 34491 added to function.strtoupper
Groups: php.notes 
Request: Send a blank email to php-notes+get-52879@lists.php.net to get a copy of this message
Converting Hungarian ( as Central-European ) caracters: to uppercase: echo( strtoupper(strtr($txt,"íéáûõúöüó","ÍÉÁÛÕÚÖÜÓ")) ); to lowercase: echo( strtolower(strtr($txt,"íéáûõúöüó","ÍÉÁÛÕÚÖÜÓ")) ); where $txt is the text to be converted and printed. The characterlist parameters of strstr function are extendable. However the setlocale (LC_ALL, 'hu_HU') could be nice. ...Could be. ;-) ---- Manual Page -- http://www.php.net/manual/en/function.strtoupper.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34491 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34491&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34491&report=yes

« previous php.notes (#52879) next »