title: How can I view the contents of a prepared statement?
body: <p>I'm working on learning to use prepared statements with mysqli in PHP and usually, if I'm having a problem with a query I just echo it to the screen to see what it looks like as a first step.</p>
  
  <p>How can I do that with a prepared statement?</p>
  
  <p>I'd like to see the SQL statement after the variables are substituted.</p>