From: <php...@li...> - 2007-03-20 12:52:48
|
Hello. I am trying to print a String to the screen (via html) that was returned from a Java Object; however, when the String is printed to the screen, has information about the string embedded. Example: Java ----------------------------------- class JavaClass{ public String toString(){ return "JavaClass"; } } PhP ----------------------------------- $out = $JavaClassInstance->toString(); echo $out; ----------------------------------- Output on the web page: [o(String)JavaClass] I've tried to cast it like so $out = (String) $JavaClassInstance->toString(); and/or echo (String) $out; Anyone know why this is happening? Thanks -- Michael Speth 石雨濛 Computer Engineer OPNET http://www.opnet.com |