title: how to call stored procedure in php
body: <p>i have created store procedure like this </p>
  
  <pre><code>delimiter //
  create procedure tom()
  begin
  select name from table where id = 1 
  end
  //
  </code></pre>
  
  <p>i am calling this store procedure in php like this </p>
  
  <pre><code>if($connection){
  echo "connected";
  $res = R::exec('call tom');
      var_dump($res);
  }
  </code></pre>
  
  <p>the query is executing but i am not able to fetch the value 
  for example: expected output  for this  is <code>tom</code> (name in the table where id=1) 
               but i am getting <code>int(1)</code>
  that means query is executing but i am not able to fetch the value, how to do it?</p>