public function executeProcedure($strProcName, $params = null)
    {
        $strParams = '';
        if ($params) {
            $a = array_map(function ($val) {
                return $this->sqlVariable($val);
            }, $params);
            $strParams = implode(',', $a);
        }
        $strSql = "call {$strProcName}({$strParams})";
        return $this->multiQuery($strSql);
    }
public function executeProcedure($strProcName, $params = null)
    {
        $strParams = '';
        if ($params) {
            $a = array_map(function ($val) {
                return $this->sqlVariable($val);
            }, $params);
            $strParams = implode(',', $a);
        }
        $strSql = "call {$strProcName}({$strParams})";
        return $this->multiQuery($strSql);
    }
public function executeProcedure ( $ strProcName , $ params = null ) { $ strParams = '' ; if ( $ params ) { $ a = array_map ( function ( $ val ) { return $ this -> sqlVariable ( $ val ) ; } , $ params ) ; $ strParams = implode ( ',' , $ a ) ; } $ strSql = "call {$strProcName}({$strParams})" ; return $ this -> multiQuery ( $ strSql ) ; }
Generic stored procedure executor. For Mysql 5, you can have your stored procedure return results by
"SELECT"ing the results. The results will be returned as an array.

@param string $strProcName Name of stored procedure
@param array|null $params
@return Result[]
@throws MysqliException
Generic stored procedure executor . For Mysql 5 you can have your stored procedure return results by SELECT ing the results . The results will be returned as an array .