How to pass an array in AS3 to an array in php?
Posted
by luiz
on Stack Overflow
See other posts from Stack Overflow
or by luiz
Published on 2010-03-11T05:47:47Z
Indexed on
2010/03/11
5:53 UTC
Read the original article
Hit count: 298
Hello friends, I have the following array as3 example:
var arrayDefinitionsargsAmfPhp:Array = new Array();
arrayDefinitionsargsAmfPhp['tabela'] = "controls";
arrayDefinitionsargsAmfPhp['width'] = "100";
sending him to the remote object for php, example:
async = bridge.getOperation(amfphpFunction).send(arrayDefinitionsargsAmfPhp);
In php I try to get the array like this:
function retornamenu($tableInBd)
{
$arr = array($tableInBd);
$tableInBdname = $arr['tabela'];
$widthInBdname = $arr['width'];
But unfortunately these variables $tableInBdname and $widthInBdname not come to php, can someone help me with an example?
Thank already
© Stack Overflow or respective owner