title: PHP, calling a ADO object method that has optional parameters
body: <p>I've almost got a basic set of helper functions done for accessing ADO through PHP. I'm running into a problem when trying to execute a stored procedure with the adExecuteNoRecords option set for $cmd->Execute(,,adExecuteNoRecords);</p>
  
  <p>I've tried null's for the first two parameters, new VARAINT(), new VARIANT(null), new VARIANT(VT_EMPTY), etc...</p>
  
  <p>I either get back a "Cannot pass parameter 1 by reference" or a com_exception of Type Mismatch, and ->Execute(,,adExecuteNoRecords) doesn't pass the PHP parsing.</p>
  
  <p>I've done quite a bit of searching, but I haven't found a single example of anyone using this.</p>
  
  <p>So in PHP when calling a COM object's method that has optional parameters, how do you set the beginning parameter's to nothing?</p>
  
  <p>Thanks.</p>