# AMFPHP Multiple Argument Passing Problem

**URL:** https://forum.kirupa.com/t/amfphp-multiple-argument-passing-problem/258883
**Category:** flash
**Created:** [April 29, 2008, 7:56am UTC](https://forum.kirupa.com/t/amfphp-multiple-argument-passing-problem/258883 "2008-04-29T07:56:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Grofit](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/grofit/32/4058_2.png) [@Grofit](https://forum.kirupa.com/u/Grofit)
#### Post date: [April 29, 2008, 7:56am UTC](https://forum.kirupa.com/t/amfphp-multiple-argument-passing-problem/258883/1 "2008-04-29T07:56:39Z")

</div>

Hey!

Im trying to do something that i was hoping would be simple:

Example Flash Code

```auto

public function callService (Service:String, onSuccess:Function, onFailed:Function, Params:Object)
        {
            var res:Responder = new Responder(onSuccess, onFailed);
            nc.call(Service, res, Params);
        }

```

Example PHP Code

```auto

function example($intID, $strName)
{
 .. Do Stuff
}

```

Now as the PHP file is requesting 2 arguments im a bit unsure as to how im supposed to lay out the Params object so PHP knows what the 2 arguments are…

So i could do something like:

```auto

Params["intID"] = 1;
Params["strName"] = "test";
callService ("exampleService.example", doYay, doNay, Params);

```

I hope this makes sense, if im being vauge or you want more information fire away!
