Thanks Justin, thats a handy function.
I've been testing my code and found that it works up until I start passing
objects into methods. This is the code I'm using to set up some objects
(they are being passes variables that have been settype()'d):
$sessioniser = new Java('com.SessionManager', "a
I don't know anything about Java in PHP myself, but here's a function
that will convert an object to an associative array for you.
function objToAssoc($obj) {
if(is_object($obj)) {
$arr = get_object_vars($obj);
} else {
$arr = $obj;
}
if(is_array($arr)) {
foreach($arr as $key