How to pass an array in AS3 to an array in php?
- by luiz
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