$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" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php