print(substr('abcdef',1)."\r\n"); // bcdef
print(substr('abcdef',1,3)."\r\n"); // bcd
print(substr('abcdef',0,4)."\r\n"); // abcd
print(substr('abcdef',0,8)."\r\n"); // abcdef
print(substr('abcdef',6)."\r\n"); // (empty string)
print(substr('abcdef',1,0)."\r\n"); // (empty string)
?>
====See Also====
[[charat()]] - Return the ASCII code for a character in a string at an index
[[strlen()]] - Return the length of a string
[[strpos()]] - Return the position of the first 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
[[strtoupper()]] - Return the UPPERCASE version of a string
[[ucfirst()]] - Convert a string to lowercase except for the first character