Mailinglisten-Archive |
Hi Jochen
'Jochen Metzger' Sent: Saturday, May 25, 2002 6:33 PM
> hat jemand Erfahrungen mit trim und der charlist
> ---->
> You can also specify the characters you want to strip, by means of the
> charlist parameter. Simply list all characters that you want to be stripped.
> With .. you can specify a range of characters.
> ---->
>
> ich verstehe das so, daß man z.B. auch '' und "" entfernen kann
Ja, so ist es.
> leider bringt folgendes kleines Script eben nicht das strippen von "" und ''
> mit sich.
[schnipp]
> $this->option[$piece[0]]=trim($piece[1],"\0x22\0x27");
^----^
?
$this->option[$piece[0]]=trim($piece[1],"\x22\x27");
Gruß
Christian
PS:
http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.double
php::bar PHP Wiki - Listenarchive