User Tools

Site Tools


uphp:functions:strlen

Differences

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

Link to this comparison view

Next revision
Previous revision
uphp:functions:strlen [2017/05/24 18:01]
jeff created
uphp:functions:strlen [2021/09/13 05:57] (current)
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 39: Line 39:
 [[charat()]] - Return the ASCII code for a character in a <html><b><span style="color:green">string<span style="color:black"></b> at an index</html> [[charat()]] - Return the ASCII code for a character in a <html><b><span style="color:green">string<span style="color:black"></b> at an index</html>
  
-[[strpos()]] - Return the position of the first occurrence of needle in haystack or -1 if not found+[[strpos()]] - Return the position of the first occurrence of needle in haystack
  
-[[strrpos()]] - Return the last occurrence of haystack in needle, or -1 if not found+[[strrpos()]] - Return the position of the last occurrence of 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 <html><b><span style="color:green">string<span style="color:black"></b></html> to lowercase except for the first character
  
uphp/functions/strlen.1495648872.txt.gz · Last modified: 2021/09/13 05:56 (external edit)