how to import a file of array definitions into an array assign command

From: Date: Thu, 31 Jan 2002 06:12:10 +0000
Subject: how to import a file of array definitions into an array assign command
Groups: php.general 
Request: Send a blank email to php-general+get-82877@lists.php.net to get a copy of this message
Hi, I have a command to assign an array to a function in a class. e.g.
        $myclass = new newclass();l
and i need it to run a function that takes in an array
        $myclass->myfunction( $array);
but i want the array to be seen defined
        $myclass->myfunction( array ( one => "1" , two => "2" ) ) ;
but lets say the definitions 'one => "1" , two => "2"' are in a text file ( to be modified of course )
how do i make the function work?
        I don;t want to call a function to do it, like
        $myclass->myfunction( array( get_array() ) );
I might be missing an easy solution, but ... :) Hasan Sastra E-Book Systems www.ebooksys.com www.flipviewer.com www.fliplibrary.com

« previous php.general (#82877) next »