Re: Conversion number two?

From: Date: Tue, 20 Nov 2001 23:16:24 +0000
Subject: Re: Conversion number two?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-75320@lists.php.net to get a copy of this message
"Brandon Lamb" <brandonl@poeinc.com> wrote: > Here is the php version > $required = array('name','address','phone'); > > Here is the perl version > @required = qw( name address phone ); > > > So is there an easy way in perl for us lazy people so i dont have to use > commas and enter every variable name in single quotes? I think you mean PHP not perl, but there is a way. $required = explode( ' ', 'name address phone' ); The code above turns the space separated list into an array. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/

« previous php.general (#75320) next »