note 39241 added to function.split
| From: | EricAndres at rn2 dot php dot net | Date: | Wed, 21 Jan 2004 19:28:14 +0000 |
| Subject: | note 39241 added to function.split | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-63974@lists.php.net to get a copy of this message | ||
While looking for a php function equivalent to qw (quote words) here I realized that I can just go
around the lack of that function. In perl, all qw is, it's a macro that takes the argument
string and puts it in side of a split function. Here's the coding for it:
qw( Hello World! )
#is equivalent to
split(' ',"Hello World!");
That code should work for both perl and php. Hope this helps someone.
Regards,
Eric
----
Manual Page -- http://www.php.net/manual/en/function.split.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39241
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39241&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39241&report=yes
Search -- http://master.php.net/manage/user-notes.php