
Druckansicht von http://www.php-homepage.de/manual/function.ltrim.php
ltrim(PHP 4, PHP 5) ltrim — Entfernt Leerraum (oder andere Zeichen) vom Anfang eines Strings Beschreibung
string ltrim
( string
$str
[, string $charlist
] )Entfernt Leerraum (oder andere Zeichen) vom Anfang eines Strings. Parameter-Liste
Rückgabewerte
Diese Funktion gibt den String
Changelog
Beispiele
Beispiel #1 Beispiel zur Verwendung von ltrim()
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: string(32) " These are a few words :) ... " string(16) " Example string " string(11) "Hello World" string(30) "These are a few words :) ... " string(30) "These are a few words :) ... " string(7) "o World" string(15) "Example string " |