How print string if she created in function?
<p>The strings <code>$test1</code>, <code>$test2</code>, <code>$test3</code>, and <code>$test4</code> are created in the function <code>test()</code> . How can I print her?</p>

<p>My code:</p>

<p><strong>conf.php</strong></p>

<pre><code>&lt;?php
function test(){
    $test1 = 'test1 string';
    $test2 = 'test2 string';
    $test3 = 'test3 string';
    $test4 = 'test4 string';
}
?&gt;
</code></pre>

<p><strong>test.php</strong></p>

<pre><code>&lt;?php 
require_once("conf.php");

test();
echo $test1;
echo $test2;
echo $test3;
echo $test4;
?&gt;
</code></pre>

<p>Why code not worked? </p>

<p>Why weren't <code>$test1</code>, <code>$test2</code>, <code>$test3</code>, and <code>$test4</code> printed.</p>

<p>P.S.: preferably without globals parameters.</p>
