龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > php编程 >

php substr() 使用示例

时间:2014-06-23 02:50来源:网络整理 作者:网络 点击:
分享到:
php substr() 使用示例 php的substr的开始位置可以是负数,如下示例:[代码片段(4行)]

php的substr的开始位置可以是负数,如下示例:

<?
print substr('This is a test. This is another test.',-6);
print substr('This is a test. This is another test.',-17,5);
?>
精彩图集

赞助商链接