PHP » PYTHON |
login |
register |
about
|
PYTHON strtoupper
is this article helpful?
|
Python replacement for PHP's strtoupper
[
edit
| history
]
s = "foo BAR" print s.upper() # FOO BAR strtoupper(PHP 4, PHP 5) strtoupper — Make a string uppercase Description
string strtoupper
( string $string
)
Returns string with all alphabetic characters converted to uppercase. Note that 'alphabetic' is determined by the current locale. For instance, in the default "C" locale characters such as umlaut-a (ä) will not be converted. Parameters
Return ValuesReturns the uppercased string. Examples
Example #1 strtoupper() example
<?php
Notes
See Also
|
more
Recently updated
more
Most requested
|