How TO make Reusable code at PHP - Related With including jQuery core
<p>Excuse me, What is best way to include jQuery to web application? Since, my application including another php file, and another file including another file.
I need a function which will put jQuery code after <code>&lt;head&gt;</code> tag and before <code>&lt;/head&gt;</code> tag, and if there is another page has been included the jQuery, please do not include it again to the page.</p>

<p>I mean this tag </p>

<pre><code>&lt;script type="text/javascript" src="js/jquery.min.js"&gt;&lt;/script&gt; 
</code></pre>

<p>has to be included after <code>&lt;head&gt;</code> and before <code>&lt;/head&gt;</code> tag.</p>

<p>I need <a href="http://en.wikipedia.org/wiki/Utility_class" rel="nofollow">Utility Class</a> which will check the code between <code>&lt;head&gt;</code> and <code>&lt;/head&gt;</code> tag.
Is it possible?
Anyone can help?</p>
