I'm trying to implement a simple client and server webservice using PEAR SOAP and PHP - Being quite new to the protocol and the language, I'm having problems sending an array from the client to the server into a switch statement.
I implemented a simple array ("inputstring"=>"this is a test string")
When I tried to perform actions using a switch statement, all the switch would receive was the array name $teststring and the value was correct. This is all well and good but what I actually need is an array full of values (not sure how full until the implementation begins for the project) and the switch would not receive an array and index to decide on a value - in essence a multidimensional array (because an array is used to pass in a single value. Does anybody have any example code of an implementation of a function in a web service that receives an array from a client and performs some action on some of the values? Switch if possible and could you include the declaration of the array?
I appreciate any help there might be
Ste