echo php variable between php scripts
<p>I was given a script with different variables that are based on date and time on the top of XHTML Strict page.</p>

<pre><code>&lt;?php
date_default_timezone_set('America/Los_Angeles');
$time = new DateTime();
if($time &lt; new DateTime('2011-10-31 18:00')){
    $title="Before Halloween";
    $cb1="2011,10,31,18,0";
}else if
    ...
?&gt;
</code></pre>

<p>Halfway through the HTML code I have a second PHP script:</p>

<pre><code>&lt;?php
date_default_timezone_set('America/Los_Angeles');
countdown(2011,10,31,18,0);
function countdown($year, $month, $day, $hour, $minute)
{
    ...
?&gt;
</code></pre>

<p>How can I echo <code>$cb1</code> from the upper script into the second script so the third line looks something like <strong>countdown(echo $cb1);</strong> and updates automatically based on the upper script?</p>
