<p>Documentation is severely lacking on anything to do with stored procedures in mysql with PHP. I currently have a stored procedure that I call via PHP, how can I get the value of an out parameter?</p>

[{'answer_id': 48161, 'author': 'John Boker', 'author_id': 2847, 'author_profile': 'https://Stackoverflow.com/users/2847', 'pm_score': 5, 'selected': True, 'text': '<p>it looks like it\'s answered in this post:</p>\n\n<p><a href="http://forums.mysql.com/read.php?52,198596,198717#msg-198717" rel="noreferrer">http://forums.mysql.com/read.php?52,198596,198717#msg-198717</a></p>\n\n<p>With mysqli PHP API: </p>\n\n<p>Assume sproc myproc( IN i int, OUT j int ): </p>\n\n<pre><code>$mysqli = new mysqli(  "HOST", "USR", "PWD", "DBNAME" );\n$ivalue=1;\n$res = $mysqli-&gt;multi_query( "CALL myproc($ivalue,@x);SELECT @x" );\nif( $res ) {\n  $results = 0;\n  do {\n    if ($result = $mysqli-&gt;store_result()) {\n      printf( "&lt;b&gt;Result #%u&lt;/b&gt;:&lt;br/&gt;", ++$results );\n      while( $row = $result-&gt;fetch_row() ) {\n        foreach( $row as $cell ) echo $cell, "&amp;nbsp;";\n      }\n      $result-&gt;close();\n      if( $mysqli-&gt;more_results() ) echo "&lt;br/&gt;";\n    }\n  } while( $mysqli-&gt;next_result() );\n}\n$mysqli-&gt;close();\n</code></pre>\n'}, {'answer_id': 486430, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 3, 'selected': False, 'text': '<p>Here\'s an example of how to do this with mysql, mysqli, and pdo:</p>\n\n<p><a href="http://www.joeyrivera.com/2009/using-mysql-stored-procedures-with-php-mysqlmysqlipdo/" rel="noreferrer">http://www.joeyrivera.com/2009/using-mysql-stored-procedures-with-php-mysqlmysqlipdo/</a></p>\n'}]
['https://Stackoverflow.com/questions/48126', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1638/']