Vielleicht hilft dir dieses Beispiel weiter:
George A. Papayiannis » Print » How to: PHP on the i5 - The i5 PHP API Toolkit and Calling RPG/CL Programs

vergleiche den Unterschied:

$retval= array ("input"=>"","output"=>"");

$parmOut = array(
"PROD_ID"=>"PROD_ID",
"STORE_LOC"=>"STORE_LOC",
"PRICE"=>"AMOUNT",
)