From 35db4c51857664a473acc4781fd7577a5cf924ab Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Wed, 19 May 2010 09:44:27 +0000 Subject: [PATCH] Fix doc bug #51858 (mb_convert_case example is not the best) by adding some examples to the manual pages for mb_convert_case, mb_strtoupper and mb_strtolower that use multi-byte characters (specifically Greek). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@299482 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../mbstring/functions/mb-convert-case.xml | 17 +++++++++++++++++ reference/mbstring/functions/mb-strtolower.xml | 15 +++++++++++++++ reference/mbstring/functions/mb-strtoupper.xml | 15 +++++++++++++++ 3 files changed, 47 insertions(+) diff --git a/reference/mbstring/functions/mb-convert-case.xml b/reference/mbstring/functions/mb-convert-case.xml index 930b9de6d4..054aaaec70 100644 --- a/reference/mbstring/functions/mb-convert-case.xml +++ b/reference/mbstring/functions/mb-convert-case.xml @@ -91,6 +91,23 @@ echo $str; // Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO $str = mb_convert_case($str, MB_CASE_TITLE, "UTF-8"); echo $str; // Prints Mary Had A Little Lamb And She Loved It So ?> +]]> + + + + + + + <function>mb_convert_case</function> example with non-Latin UTF-8 text + + ]]> diff --git a/reference/mbstring/functions/mb-strtolower.xml b/reference/mbstring/functions/mb-strtolower.xml index f8433bd485..7273032649 100644 --- a/reference/mbstring/functions/mb-strtolower.xml +++ b/reference/mbstring/functions/mb-strtolower.xml @@ -74,6 +74,21 @@ $str = "Mary Had A Little Lamb and She LOVED It So"; $str = mb_strtolower($str); echo $str; // Prints mary had a little lamb and she loved it so ?> +]]> + + + + + + + <function>mb_strtolower</function> example with non-Latin UTF-8 text + + ]]> diff --git a/reference/mbstring/functions/mb-strtoupper.xml b/reference/mbstring/functions/mb-strtoupper.xml index 4aa871a133..25a8096e2d 100644 --- a/reference/mbstring/functions/mb-strtoupper.xml +++ b/reference/mbstring/functions/mb-strtoupper.xml @@ -74,6 +74,21 @@ $str = "Mary Had A Little Lamb and She LOVED It So"; $str = mb_strtoupper($str); echo $str; // Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO ?> +]]> + + + + + + + <function>mb_strtoupper</function> example with non-Latin UTF-8 text + + ]]>