Re: Conversion number two?

From: Date: Tue, 20 Nov 2001 23:15:34 +0000
Subject: Re: Conversion number two?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-75321@lists.php.net to get a copy of this message
perhaps you want to do the following: function foo($str) { return explode(' ',$str); } $required = foo('name address phone'); regards, Philip Olson On Tue, 20 Nov 2001, Brandon Lamb 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? > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#75321) next »