User Tools

Site Tools


uphp:functions:strlen

Differences

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

Link to this comparison view

uphp:functions:strlen [2017/05/24 18:01]
jeff created
uphp:functions:strlen [2021/09/13 05:57]
Line 1: Line 1:
-======strlen====== 
- 
-<badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge> 
- 
-Return the length of a <html><b><span style="color:green">string</b></html> 
- 
-====Description==== 
- 
-<well size="sm"><html> 
-<span style="font-size:125%;color:green">int 
-<span style="color:black">strlen ( 
-<span style="color:green">string 
-<span style="color:blue">$str 
-<span style="color:black">) 
-</html></well> 
- 
-====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> 
- 
-====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> 
- 
-====Examples==== 
- 
-<code php> 
-<? 
-  $str='abcdef'; 
-  echo strlen($str); // 6 
- 
-  $str=' ab cd '; 
-  echo strlen($str); // 7 
-?> 
-</code> 
- 
-====See Also==== 
- 
-[[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 
- 
-[[strrpos()]] - Return the last occurrence of haystack in needle, or -1 if not found 
- 
-[[strtolower()]] - Return the lowercase version of a string 
- 
-[[strtoupper()]] - Return the uppercase version of a string 
- 
-[[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. 
- 
-[[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)