note 98549 added to function.explode
| From: | benf101 at gmail dot com | Date: | Tue, 22 Jun 2010 13:39:17 +0000 |
| Subject: | note 98549 added to function.explode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-170378@lists.php.net to get a copy of this message | ||
How to explode and trim the results in 4 lines:
// Set your array using explode
$meta_keys_arr = explode(",",$META_KEY);
// replace the position with a trimmed version of the string
foreach($meta_keys_arr as $k=>$v){
$meta_keys_arr[$k] = trim($v);
}
----
Server IP: 69.147.83.197
Probable Submitter: 208.44.114.1
----
Manual Page -- http://www.php.net/manual/en/function.explode.php
Edit -- https://master.php.net/note/edit/98549
Del: integrated -- https://master.php.net/note/delete/98549/integrated
Del: useless -- https://master.php.net/note/delete/98549/useless
Del: bad code -- https://master.php.net/note/delete/98549/bad+code
Del: spam -- https://master.php.net/note/delete/98549/spam
Del: non-english -- https://master.php.net/note/delete/98549/non-english
Del: in docs -- https://master.php.net/note/delete/98549/in+docs
Del: other reasons-- https://master.php.net/note/delete/98549
Reject -- https://master.php.net/note/reject/98549
Search -- https://master.php.net/manage/user-notes.php