Hi,
can you please give an example which demonstrates the problem?
> Should PHP handle everyting as a string and type casting be
> done in Java?
That's the only type that PHP supports, anyway. :)
> For example I have a Sql query being called from Java. PHP
> passes a
> string and an int to the Java routine and the Java routine
> runs the SQL query and returns a double.
The bridge will return a proxy for the result, which can be evaluated as usual:
either
echo (int)(string)$sqlResult;
or
echo java_values($sqlResult);
Note that the first line above might be wrong on 32 bit machines, where PHP int values have a limited range. Use (double)(string)$sqlResult instead.
Regards,
Jost Boekemeier
|