title: How to add an is not null function to PHP
body: <p>I have the following php (PDO) statement:</p>
  
  <pre><code>&lt;?php echo'&lt;a href="' . $row['RecordURL'] .'"&gt;Call recording&lt;/a&gt;' ?&gt;
  </code></pre>
  
  <p>How do I add a function so that if RecordURL is null, then the following HTML is echoed instead:</p>
  
  <pre><code>No call recording
  </code></pre>
  
  <p>My guess so far results in syntax errors:</p>
  
  <pre><code>    1 &lt;?php 
      2 if ($row['RecordURL'] !== null) {
      3  echo'&lt;a href="' . $row['RecordURL'] .'"&gt;Call recording&lt;/a&gt;'
      4 };
      5  ?&gt;
  </code></pre>
  
  <p>** Edit: Syntax error output: **</p>
  
  <pre><code>Parse error: syntax error, unexpected '.' in line 3
  </code></pre>