jeudi 2 mars 2017

actionscript 3 code use in php?

I know actionscript 3 but dont know php How do I use the following actionscirpt 3 codes on the php?

1.

var items:Array = [{name:"Hasan",age:30,{name:"Ahmet",age:20}];

items.splice(0,1);

result items =  [{name:"Ahmet",age:20}];

2.

var items:Array = [{name:"Hasan",age:30},{name:"Ahmet",age:20}];

for(var i:int = 0;i<items.length; i++}
{
    var tmp:Object = items[i];
    if(tmp.name == "Ahmet")
     {
          //found item
             return items[i];
      }
}

result return = {name:"Ahmet",age:20}

please help thanks

Aucun commentaire:

Enregistrer un commentaire