substr() behavior is also changed in php 7:
If string is equal to start characters long, an empty string will be returned. Prior to this version (7), FALSE was returned in this case.
http://php.net/manual/en/function.substr.php
depth
,获取当前目录向上
depth
级父目录的名称。
is_dst
参数。
PREG_REPLACE_EVAL
)。应当使用
preg_replace_callback() 替代。
category
传入字符串。应当使用 LC_*
常量。
substr() behavior is also changed in php 7:
If string is equal to start characters long, an empty string will be returned. Prior to this version (7), FALSE was returned in this case.
http://php.net/manual/en/function.substr.php