title: php ( function.php) file function call in another file
body: <p>I have a page function.php and call this function in another page view.php but function not call properly
  Here is the function.php code</p>
  
  <pre><code> &lt;?php
  function head1()
  {
    global $title;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
    &lt;header&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;link rel="stylesheet" type="text/css" href="style.css" /&gt;
  &lt;title&gt;WhiteFlower| florida web design&lt;/title&gt;
  &lt;/header&gt;
  }
  head1();
  ?&gt;
  </code></pre>
  
  <p>Second php file</p>
  
  <pre><code>&lt;?php
   include "function.php";
   head1();
   ?&gt;
  </code></pre>
  
  <p>This is code of another file view.php
  I am new in php so I cannot understand how it works properly</p>