To get a perl style chop():
<?php
$foo =
"bar";
$foo = substr("$foo", 0, -1);
echo
$foo;
//returns "ba" (removes last character)
?>
| PHP动态 | 经典文章 | CLASS | 相关下载 | 常见问题 | FORUM | WIKI | 在线手册 |
| view source | feedback | send page | sitemap | aboutus |
|
Copyright ® 2002-2003 PHPE.NET. All rights reserved Last updated:2002-11-22 |