超越PHP PHP动态 | 经典文章 | CLASS | 相关下载 | 常见问题 | FORUM | WIKI | 在线手册
Site search:    
<bin2hexchr>
Last updated: Fri, 22 Jun 2007

chop

chop -- rtrim() 的别名函数

描述

此函数是 rtrim() 的别名函数。

注: chop() 与 Perl 的 chop() 函数有所不同,其删除字符串的最后一个字符。




add a note add a note User Contributed Notes
chop
bernard dot SPAM at mindfiredesign dot SPAM dot co dot uk
22-Jan-2002 05:23
To get a perl style chop():
<?php
$foo = "bar";
$foo = substr("$foo", 0, -1);
echo $foo;

//returns "ba" (removes last character)
?>

<bin2hexchr>
 Last updated: Fri, 22 Jun 2007
view source | feedback | send page | sitemap | aboutus   
Copyright ® 2002-2003 PHPE.NET. All rights reserved
Last updated:2002-11-22