Re: beginner: cut text after " "
| From: | John W. Holmes | Date: | Thu, 28 Aug 2003 04:42:21 +0000 |
| Subject: | Re: beginner: cut text after " " | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161002@lists.php.net to get a copy of this message | ||
Andras Kende wrote:
Hello All, I have a very simple question: Want to remove the string after the first whitespace like: "here is a text what i have" to: "here"$word = substr($sentence,0,strpos($sentence,' ')); -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com