首頁  >  文章  >  後端開發  >  PHP rtrim函数bug_PHP教程

PHP rtrim函数bug_PHP教程

WBOY
WBOY原創
2016-07-20 11:14:56896瀏覽

测试代码

<?<span php
</span><span $str</span> = <span rtrim</span>('article_list.html', '.html'<span );
</span><span echo</span> <span $str</span><span ;

</span><span echo</span> '<br />'<span ;

</span><span $str</span> = <span rtrim</span>('article_index.html', '.html'<span );
</span><span echo</span> <span $str</span><span ;

</span><span echo</span> '<br />'<span ;

</span><span $str</span> = <span rtrim</span>('articleABCT.html', '.html'<span );
</span><span echo</span> <span $str</span><span ;

</span><span echo</span> '<br />'<span ;
</span>?>

 

显示结果

article_index
articleABCT

 

WINNT Apache/2.2.16 (Win32) PHP/5.2.14(本地PHPnow 1.5.6-1)
Linux Apache 2.0 PHP/5.2.17p1(wdcp_v2.5.7)
Linux LiteSpeed PHP/5.2.17(梦游主机)
Linux Apache 2.0 PHP/5.2.17(主机无忧)

 

 

 

 

 

 

PHP rtrim函数bug

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/440248.htmlTechArticle测试代码 : ? = ('article_list.html', '.html' 'br /' = ('article_index.html', '.html' 'br /' = ('articleABCT.html', '.html' 'br /' ? 显示结果 : article_index articleABCT...
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn