Menu

[r376]: / trunk / php-java-bridge / tests.php5 / nestedArrays.php  Maximize  Restore  History

Download this file

15 lines (13 with data), 322 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
<?php
$v = new java("java.util.Vector");
$ar=(array("one"=>1, "two"=>2, "three"=>3, array("a",array(1,2,3,array("a","b"),5,"c","d"), "five"=>5, "six"=>6)));
$v->add($ar);
$result=(array_diff_assoc(java_values($v),$ar));
if(sizeof($result)==0) {
echo "test okay\n";
exit(0);
} else {
echo "ERROR\n";
exit(1);
}
?>