title: JavaScript into PHP
body: <p>I'm working in WordPress.</p>
  
  <p>I have this code:</p>
  
  <pre><code>&lt;?php echo $options['phonenumber']; ?&gt;
  </code></pre>
  
  <p>Which works and it's showing the phonenumber typed in admin.
  What I want is to show a specific number if in admin the field phonenumber is empty.</p>
  
  <p>I tried this:</p>
  
  <pre><code>&lt;?php
      $defaultphone="9999";
  if (function_exists( $options['phonenumber'] )) {
      echo $options['phonenumber'];
  } else {
      echo $defaultphone; 
  }
  ?&gt;
  </code></pre>
  
  <p>and it's not working. It shows only 9999 even if I insert a number in admin.
  Thanks in advice.</p>