Re: [PHP] Passing the Array as Parameter to either the function or object/class???
On Thu, 2004-10-21 at 09:57 -0400, Scott Fletcher wrote: > Hi! > > I wanted to know is can it be done by passing the array as a parameter > to the function? > > I also wanted to know is is it possible to pass around the array in the > object-orientated feature like object/class stuffs? > yes and yes. ie: function foo($bar) { print_r($bar); } $myarray = array(1,2,3,4); foo($myarray); ouputs: Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 ) cheers, Robby -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | blog.planetargon.com * PHP/PostgreSQL Hosting & Development / signature.asc Description: This is a digitally signed message part
Re: [PHP] Passing the Array as Parameter to either the function or object/class???
On Thu, 21 Oct 2004 09:57:07 -0400, Scott Fletcher <[EMAIL PROTECTED]> wrote: > I wanted to know is can it be done by passing the array as a parameter > to the function? Yes. By reference and by value. > I also wanted to know is is it possible to pass around the array in the > object-orientated feature like object/class stuffs? Yes. By reference and by value. Some people have issues with theoretical posts like this one. Showing an honest attempt with some broken code usually gets help the quickest. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Passing the Array as Parameter to either the function or object/class???
Hi! I wanted to know is can it be done by passing the array as a parameter to the function? I also wanted to know is is it possible to pass around the array in the object-orientated feature like object/class stuffs? Thanks, Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php