User Tools

Site Tools


uphp:functions:strtoupper

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:functions:strtoupper [2017/05/26 17:42]
jeff
uphp:functions:strtoupper [2021/09/13 05:57] (current)
Line 11: Line 11:
 <span style="color:black">strtoupper ( <span style="color:black">strtoupper (
 <span style="color:green">string <span style="color:green">string
-<span style="color:blue">$str+<span style="color:blue">$input
 <span style="color:black">) <span style="color:black">)
 </html></well> </html></well>
  
-This function converts all alphabetic characters in <html><b><span style="color:blue">str<span style="color:black"></b></html> to UPPERCASE+This function converts all alphabetic characters in <html><b><span style="color:blue">input<span style="color:black"></b></html> to UPPERCASE
  
 ====Parameter==== ====Parameter====
  
-<html><b><span style="color:blue">$str<span style="color:black"></b>:  The input <b><span style="color:green">string<span style="color:black"></b></html>+<html><b><span style="color:blue">$input<span style="color:black"></b>:  The input <b><span style="color:green">string<span style="color:black"></b></html>
  
 ====Return Values==== ====Return Values====
Line 31: Line 31:
   $str="Mary Had A Little Lamb and She LOVED It So";   $str="Mary Had A Little Lamb and She LOVED It So";
   $str=strtoupper($str);   $str=strtoupper($str);
-  print $str; // Prints "MARY HAD A LITTLE LAMB AND SHE LOVED IT SO"+  print($str); // Prints "MARY HAD A LITTLE LAMB AND SHE LOVED IT SO"
 ?> ?>
 </code> </code>
Line 49: Line 49:
 [[substr()]] - Return part of a <html><b><span style="color:green">string</b></html> [[substr()]] - Return part of a <html><b><span style="color:green">string</b></html>
  
-[[ucfirst()]] - Convert a <html><b><span style="color:green">string<span style="color:black"></b></html> to lowercase except for the first character of each word+[[ucfirst()]] - Convert a <html><b><span style="color:green">string<span style="color:black"></b></html> to lowercase except for the first character
  
uphp/functions/strtoupper.1495820565.txt.gz · Last modified: 2021/09/13 05:56 (external edit)