主页
PHP
PHP substr() 函数
tryphp_func_string_substr2
运行 ❯
×
更改方向
保存代码
更改主题
<?php // Positive numbers: echo substr("Hello world",10)."
"; echo substr("Hello world",1)."
"; echo substr("Hello world",3)."
"; echo substr("Hello world",7)."
"; echo "
"; // Negative numbers: echo substr("Hello world",-1)."
"; echo substr("Hello world",-10)."
"; echo substr("Hello world",-8)."
"; echo substr("Hello world",-4)."
"; ?>