Bug #14117: Problems with ucwords(strtolower()) function
| From: | andregp at yahoo dot com | Date: | Mon, 19 Nov 2001 15:45:40 +0000 |
| Subject: | Bug #14117: Problems with ucwords(strtolower()) function | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-70927@lists.php.net to get a copy of this message | ||
From: andregp@yahoo.com
Operating system: Win98/Linux-Conectiva
PHP version: 4.0.6
PHP Bug Type: Strings related
Bug description: Problems with ucwords(strtolower()) function
<html>
<body>
<?php
class texto {
var $str1='',
$str2='',
$str3='';
}
$str= new texto();
$str->str1='AÇÃO';
$str->str2=strtolower($str->str1);
$str->str3=ucwords($str->str1);
print("1: $str->str1 <br>".
"2: $str->str2 <br>".
"3: $str->str3 <br>");
?>
</body>
</html>
Expected $str->str3 = 'Ação', but isn't what I get.
When I use this functions in strigs that are outside a object, this error
don't happens.
In instance:
<?php
$str1='AÇÃO';
$str2=strtolower($str1);
$str3=ucwords($str2);
?>
// ---> THIS OK
* Sorry 'bout my poor english.
--
Edit bug report at: http://bugs.php.net/?id=14117&edit=1