English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
PHP String String Funzione Manuale
La funzione chop() è un alias della funzione rtrim()
chop(string,charlist)
Usato per eliminare gli spazi
Restituisce la stringa modificata
Numero di Ordine | Parametri e Descrizione |
---|---|
1 | str Questa stringa deve essere escapata |
2 | charlist Usato per specificare i caratteri da eliminare |
Prova il seguente esempio
<?php $str = "oldtoolbag.com!"; echo $str . "\n"; echo chop($str,"com!"); ?>Testa e Guarda‹/›
Risultato di Output
oldtoolbag.com! w3codebox