Home > Backend Development > PHP Tutorial > PHP rtrim function bug_PHP tutorial

PHP rtrim function bug_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-20 11:14:56
Original
962 people have browsed it

Test code:

<?<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>?>
Copy after login

Display results:

article_index
articleABCT

WINNT Apache/2.2.16 (Win32) PHP/5.2.14 (local PHPnow 1.5.6-1)
Linux Apache 2.0 PHP/5.2.17p1 (wdcp_v2.5.7)
Linux LiteSpeed ​​PHP/5.2 .17 (Sleepwalk Host)
Linux Apache 2.0 PHP/5.2.17 (Worry-Free Host)

PHP rtrim function bug

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/440248.htmlTechArticleTest code: ? = ('article_list.html', '.html' 'br /' = ('article_index .html', '.html' 'br /' = ('articleABCT.html', '.html' 'br /' ? Display results: article_index articleABCT...
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template