★ wanayoo — archive 1999 http://fr.php.net/manual/ru/function.chop.phpNouvelle recherche | Portail wanayoo
PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousbin2hexchrnext
Last updated: Wed, 03 Jul 2002
view the printer friendly version or the printer friendly version with notes or change language to English | Brazilian Portuguese | Chinese | Czech | Dutch | Finnish | French | German | Hungarian | Italian | Japanese | Korean | Polish | Romanian | Spanish | Swedish | Turkish

chop

(PHP 3, PHP 4 >= 4.0.0)

chop -- Alias of rtrim()

Description

This function is an alias of rtrim().

Замечание: chop() is different than the Perl chop() function, which removes the last character in the string.

User Contributed Notes
chop
add a note about notes
bernard.SPAM@mindfiredesign.SPAM.co.uk
21-Jan-2002 07:23

To get a perl style chop():
$foo = "bar";
$foo = substr("$foo", 0, -1);
echo $foo;

//returns "ba" (removes last character)

add a note about notes
previousbin2hexchrnext
Last updated: Wed, 03 Jul 2002
show source | credits | stats | mirror sites
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: nexen.net
Last updated: Thu Aug 29 04:33:15 2002 CEST