On this page本页内容
$substr¶Deprecated since version 3.4:$substr is now an alias for $substrBytes.
Returns a substring of a string, starting at a specified index position and including the specified number of characters. The index is zero-based.
$substr has the following syntax:语法如下所示:
The arguments can be any valid expression as long as the first argument resolves to a string, and the second and third arguments resolve to integers. For more information on expressions, see Expressions.有关表达式的详细信息,请参阅表达式。