This shows you the differences between two versions of the page.
uphp:functions:strlen [2017/05/24 18:01] jeff created |
uphp:functions:strlen [2021/09/13 05:57] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======strlen====== | ||
- | |||
- | < | ||
- | |||
- | Return the length of a < | ||
- | |||
- | ====Description==== | ||
- | |||
- | <well size=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | </ | ||
- | |||
- | ====Parameter==== | ||
- | |||
- | < | ||
- | |||
- | ====Return Values==== | ||
- | |||
- | < | ||
- | |||
- | ====Examples==== | ||
- | |||
- | <code php> | ||
- | <? | ||
- | $str=' | ||
- | echo strlen($str); | ||
- | |||
- | $str=' ab cd '; | ||
- | echo strlen($str); | ||
- | ?> | ||
- | </ | ||
- | |||
- | ====See Also==== | ||
- | |||
- | [[charat()]] - Return the ASCII code for a character in a < | ||
- | |||
- | [[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 | ||