Sample Call

<?php
// SOAP_CLIENT_BASEDIR - folder that contains the PHP Toolkit and your WSDL
// $USERNAME - variable that contains your Salesforce.com username (must be in the form of an email)
// $PASSWORD - variable that contains your Salesforce.com password

define("SOAP_CLIENT_BASEDIR", "../../soapclient");
require_once (SOAP_CLIENT_BASEDIR.'/SforcePartnerClient.php');
require_once (SOAP_CLIENT_BASEDIR.'/SforceHeaderOptions.php');

require_once ('../userAuth.php');

try {
  $mySforceConnection = new SforcePartnerClient();
  $mySoapClient = $mySforceConnection->createConnection(SOAP_CLIENT_BASEDIR.'/partner.wsdl.xml');
  $mylogin = $mySforceConnection->login($USERNAME, $PASSWORD);
/*--------------------------------------------------------\
| To check the sample please set the object values in 
| userAuth.php file 
| Set values for $OBJECTID1,$OBJECTID2 & $NEXTOBJECTID
\--------------------------------------------------------*/

  $processSubmitRequest1 = new ProcessSubmitRequest();
  $processSubmitRequest1->objectId = $OBJECTID1;
  $processSubmitRequest1->comments = "Please approve this request.";
  $processSubmitRequest1->nextApproverIds = array($NEXTOBJECTID);

  $processSubmitRequest2 = new ProcessSubmitRequest();
  $processSubmitRequest2->objectId = $OBJECTID2;
  $processSubmitRequest2->comments = "Please approve this request.";
  $processSubmitRequest2->nextApproverIds = array($NEXTOBJECTID);  

  $processSubmitRequestResponse = $mySforceConnection->processSubmitRequest(array ($processSubmitRequest1, $processSubmitRequest2));

  print_r($processSubmitRequestResponse);
} catch (Exception $ex) {
  echo $mySforceConnection->getLastRequest();
  print_r($ex);
}
?>

Sample Output