★ wanayoo — archive 1999 http://fr.php.net/manual/nl/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: Mon, 26 Aug 2002
view the printer friendly version or the printer friendly version with notes or change language to English | Brazilian Portuguese | Chinese | Czech | Finnish | French | German | Hungarian | Italian | Japanese | Korean | Polish | Romanian | Russian | Spanish | Swedish | Turkish

chop

(PHP 3, PHP 4 )

chop -- Verwijdert achteraankomende whitespace

Beschrijving

string chop ( string str)

Deze functie is een alias van rtrim().

Opmerking: chop() verschilt van de Perl chop() functie, die de laatste character van de string verwijdert.

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: Mon, 26 Aug 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: Wed Aug 28 05:19:49 2002 CEST