Fw: [PHP-GTK] Array

From: Date: Mon, 12 Mar 2001 13:45:05 +0000
Subject: Fw: [PHP-GTK] Array
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-697@lists.php.net to get a copy of this message
----- Original Message ----- From: "Celestino Roberto Alejandro" <rcelestino@elsitio.com.ar> To: "Alexander Benatti" <alexb@abinet.com.br> Sent: Monday, March 12, 2001 10:42 AM Subject: Re: [PHP-GTK] Array > <? > > $menu_items = Array( > 0=>Array( > path => '/_File', > type => '<Branch' > ), > 1=>Array( > path => '/File/_New', > accelerator => '<controlN', > callback => "\&print_hello" > ), > 2=>Array( > path => '/File/_Open', > accelerator => '<controlO', > callback =>"\&print_hello" > ), > 3=>Array( > path => '/File/_Save', > accelerator => '<controlS', > callback => "\&print_hello" > ) > 4=>Array( > path => '/File/Save _As' > ), > 5=>Array( > path => '/File/sep1', > type => '<Separator' > ), > 6=>Array( > path => '/File/Quit', > callback => "sub { Gtk-exit( 0 ); }" > ) > ); > ....continue with your array, replacing the { that you use for definte the > diferent nivel of your array, for a new call to Array, and note that the use > of pointer to a function in php is diferent that in perl..try > Function nameofunction($arg) > { > print $arg; > } > $myfunction="nameofunction"; > $myfunction("hello world"); > ..bye...and good luck... > Roberto Celestino > Universidad Nacional de la Matanza > ----- Original Message -----

« previous php.gtk (#697) next »