User Tools

Site Tools


uphp:functions:strlen

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
Next revision Both sides next revision
uphp:functions:strlen [2017/05/26 15:01]
jeff
uphp:functions:strlen [2017/05/26 18:29]
jeff
Line 11: Line 11:
 <span style="color:black">strlen ( <span style="color:black">strlen (
 <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>
Line 17: Line 17:
 ====Parameter==== ====Parameter====
  
-<html><b><span style="color:blue">$str<span style="color:black"></b>:  A <b><span style="color:green">string<span style="color:black"></b></html>+<html><b><span style="color:blue">$input<span style="color:black"></b>:  A <b><span style="color:green">string<span style="color:black"></b></html>
  
 ====Return Values==== ====Return Values====
  
-<html><b><span style="color:green">Integer<span style="color:black"></b> number of bytes in the <b><span style="color:green">string<span style="color:black"></b> (it's length), 0 if <b><span style="color:blue">$str<span style="color:black"></b> is empty</html>+<html><b><span style="color:green">Integer<span style="color:black"></b> number of bytes in the <b><span style="color:green">string<span style="color:black"></b> (it's length), which can be 0 if the <b><span style="color:blue">input<span style="color:green"> string<span style="color:black"></b> is empty</html>
  
 ====Examples==== ====Examples====
Line 43: Line 43:
 [[strrpos()]] - Return the position of the last occurrence of a needle in a haystack [[strrpos()]] - Return the position of the last occurrence of a needle in a haystack
  
-[[strtolower()]] - Return the lowercase version of a string+[[strtolower()]] - Return the lowercase version of a <html><b><span style="color:green">string</b></html>
  
-[[strtoupper()]] - Return the uppercase version of a string+[[strtoupper()]] - Return the UPPERCASE version of a <html><b><span style="color:green">string</b></html>
  
-[[substr()]] - Return a sub-string of the passed str from start for len characters. If len is blank it will return the string until the end.+[[substr()]] - Return part of <html><b><span style="color:green">string</b></html>
  
 [[ucfirst()]] - Convert a string to lowercase except for the first character of each word [[ucfirst()]] - Convert a string to lowercase except for the first character of each word
  
uphp/functions/strlen.txt · Last modified: 2021/09/13 05:57 (external edit)