Taking the last word out of a string

From: Date: Fri, 12 Apr 2002 09:59:13 +0000
Subject: Taking the last word out of a string
Groups: php.general 
Request: Send a blank email to php-general+get-92736@lists.php.net to get a copy of this message
Hello there, I have a string that comes in various sizes and word numbers, I wish to extract the last word from this string, how can I do it? I have already looked at substr() and strrpos() man pages looking for the answer... couldn't find it though... Thank you! Regards Gil Disatnik Rockfour's webmaster GibsonLP@EFnet _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ "Windows NT has detected mouse movement, you MUST restart your computer before the new settings will take effect, [ OK ]" -------------------------------------------------------------------- Windows is a 32 bit patch to a 16 bit GUI based on a 8 bit operating system, written for a 4 bit processor by a 2 bit company which can not stand 1 bit of competition. -------------------------------------------------------------------- www.technohac.com/webmaster - Homepage -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

« previous php.general (#92736) next »