Carlos - 2010-09-21

Hi, How can I determined if input parameters have been submitted or not?
Supposed an input array is required?

function hello($person) {
//both of these does not work
//if (!isset($person['firstname']))  return new soap_fault('SERVER','xsd:string','Put your First name!');
//exit function
  //if(!$person['firstname']) return new soap_fault('SERVER','xsd:string','Put your First name!');
    
    $greeting = 'Hello, ' . $person['firstname'] .
                '. It is nice to meet a ' . $person['age'] .
                ' year old ' . $person['gender'] . '.';
    
    $winner = $person['firstname'] == 'Scott';

 // return new soapval('return', 'xsd:string', $ret);
    return array(
                'greeting' => $greeting,
                'winner' => $winner
                );
}