note 80890 added to function.strstr
| From: | Tecbrat at osu1 dot php dot net | Date: | Tue, 05 Feb 2008 20:52:25 +0000 |
| Subject: | note 80890 added to function.strstr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-135801@lists.php.net to get a copy of this message | ||
I was looking for an alternative to this:
<?
list($result,$null) = explode($needle,$haystack);
unset($null);
?>
But it looks like this might be the simplest work around for users of versions less than 6.
(I haven't tested this exact syntax, but it is was used like this:
<?
list($result,$null) = explode(';',$variable);
unset($null);?>
)
----
Server IP: 69.147.83.197
Probable Submitter: 71.243.247.95
----
Manual Page -- http://www.php.net/manual/en/function.strstr.php
Edit -- https://master.php.net/note/edit/80890
Del: integrated -- https://master.php.net/note/delete/80890/integrated
Del: useless -- https://master.php.net/note/delete/80890/useless
Del: bad code -- https://master.php.net/note/delete/80890/bad+code
Del: spam -- https://master.php.net/note/delete/80890/spam
Del: non-english -- https://master.php.net/note/delete/80890/non-english
Del: in docs -- https://master.php.net/note/delete/80890/in+docs
Del: other reasons-- https://master.php.net/note/delete/80890
Reject -- https://master.php.net/note/reject/80890
Search -- https://master.php.net/manage/user-notes.php