/ Published in: PHP
Returns last word of a string (words separated by blanks). if string does not have any blanks, it will return the whole string.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/*------------------------------------------------------------------- /* Submodul: last_word() /* Version: 1.0 /* Beschr.: Gibt das letzte Wort eines Strings zurück /* IN: string /* OUT: wort (letztes Wort aus String) /*------------------------------------------------------------------- */ function last_word($string) { return $letztes_wort; } else return $string; }