How to fixed the unexpected $EOF in this script?, i've trying to fix but can't : <p>How to fixed the unexpected $EOF in this code, i've trying to delete some thing and adding some thing but it not work, i was using google to learn how to fixed it but i not found some thing are work well to my code, this it a code:</p>

<pre><code>  &lt;html&gt;
   &lt;head&gt;
    //Head Content
   &lt;head&gt;
   &lt;body&gt;
 SOME HTML CODES
  &lt;?php
  if (!isset($_GET['fburl'])) {
             if (filter_var($url, FILTER_VALIDATE_URL) === false) {
die('url invalid!');
} else {
function random19() {
  $number = "";
   for($i=0; $i&lt;19; $i++) {
     $min = ($i == 0) ? 1:0;
     $number .= mt_rand($min,9);
 }
  return $number;
}

 echo random19();
 }
        ?&gt;
 &lt;/body&gt;
&lt;/html&gt; //this it line was unexpected $EOF
</code></pre>
