note 11804 added to strstr
| From: | trooster at SpamNo dot interstroom dot nl | Date: | Wed, 07 Mar 2001 17:55:57 +0000 |
| Subject: | note 11804 added to strstr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12005@lists.php.net to get a copy of this message | ||
To return all of haystack till the first occurrence of needle:
substr ($haystack, 0, strpos($haystack, $needle));
http://www.php.net/manual/en/function.strstr.php