"Brandon Lamb" <[EMAIL PROTECTED]> 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/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to