x360c
says
Ok, lol, I figured out what it was.
Here is the AS3 side:
import classes.Serializer;
var test:Array=new Array ();
test.push ("asdf,0");
test.push (["asdf1,0","asdf1,1"]);
trace (Serializer.serialize (test));
Which give me this:
O:8:"stdClass":2:{s:1:"0";s:5:"asdf1";s:1:"1";O:8:"stdClass":2:{s:1:"0";s:5:"asdf2";s:1:"1";s:5:"asdf3";}}
And when I put it php with this and try to use it:
<?
$test=unserialize ('O:8:"stdClass":2:{s:1:"0";s:5:"asdf1";s:1:"1";O:8:"stdClass":2:{s:1:"0";s:5:"asdf2";s:1:"1";s:5:"asdf3";}}');
echo $test[0].'\n';
echo $test[1][0].'\n';
echo $test[1][1].'\n';
?>
It gives me this error:
Fatal error: Cannot use object of type stdClass as array in /hosted/subs/ulmb.com/z/i/zidian/public_html/aztec/flash_varString.php on line 4
Any ideas what went wrong?
