Re: equivalent of qw?
| From: | Julio Nobrega Trabalhando | Date: | Thu, 18 Apr 2002 18:24:40 +0000 |
| Subject: | Re: equivalent of qw? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-93569@lists.php.net to get a copy of this message | ||
$str = 'a b c foo bar';
$array = explode(' ', $str);
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884
"Jack Dempsey" <dempsejn@georgetown.edu> wrote in message
news:NEBBKBGAMLPMIDAJEALPIELPCJAA.dempsejn@georgetown.edu...
> Hi all,
>
> I often find myself creating long arrays like so
>
> $a = array(
> a
> b
> c
> d
> e
> f
> r
> foo
> bar
> etc
> ...
> );
>
> is there an easy way I don't know about to quote those vars? Basically
just
> looking for an easier way to make such an array without adding teh quotes
> and commas, something like perl's qw.
>
> Thanks!
>
> Jack Dempsey
>