From: Jost B. <jos...@ya...> - 2005-11-12 10:44:38
|
Hi Adam, the java.lang.reflect.Array has the following factory procedure: newInstance(Class componentType, int[] dimensions) so that you can call: $ar=$Array->newInstance(new java("java.lang.Object", array(2,2,2,2,2,2)); to create an array with 6 dimensions. $str=new java("java.lang.String", "hello"); $ar[0][1][0][1][0][1]=$str; should work, at least in PHP5. (It might work in PHP4, too, but then you have to use the array setter/getters explicitly). Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |