title: PHP Prepared Statements: Echo the Result
body: <p>i want to Display the Result ('Positio: 2' or 'Position: 1') via a Echo
  but $statement is  a Object of class PDOStatement and not a String, how do i get it to see only the result of $statement? Thank you</p>
  
  <pre><code>&lt;?php
  $pdo = new PDO('mysql:host=localhost;dbname=testdb1', 'root', '');
  
      $idV = $_GET['id'];
  
  $statement = $pdo-&gt;prepare("SELECT position FROM idtabelle WHERE idnumber = ?");
  $statement-&gt;execute(array($idV));
  
  echo "Position: //$result_Of_Statement\\  ";
  ?&gt;
  </code></pre>