substr(文本,起始位置,结束位置)
<?php $str = 'tommrow is another day'; substr($str,0,3); substr($str,0,-3);//负数代表,文本结束位置从后往前数 ?>
Powered By Cheug's Blog