PHP: What if one variable return from server with different value?
<p>I have a problem with variable (for example $foo), because when first part of the PHP script execute, variable $foo has value "123" ($foo = 123) but second part of the same script execute another action and also return $foo with a new value.</p>

<p>I need to enter the following data to my database:</p>

<p>The first $foo which has a value of 123
Second $foo with a new value</p>

<p>If I try to do it, script enters the same value as first $foo, where $foo have value '123' but I need also to have this another new $foo value.</p>

<p>What should I do to have something like this: 
first </p>

<pre><code>$foo = 123; 
</code></pre>

<p>and second </p>

<pre><code>$foo = 'new value'
</code></pre>

<p>?? </p>

<hr>

<p>UPDATE: </p>

<p>THIS IS EXACTLY WHAT I GOT FROM THE SERVER (after second part of the script is executed):</p>

<pre><code>Array
(

    [first_value] =&gt; 5555

    [second_value] =&gt; 22222
    [third_value] =&gt; 3333333
    [some_name] =&gt; 123456
    [fourth_value] =&gt; 44444
)
</code></pre>

<p>Well to clarify: How I can get value '123456' without echo $some_name;  or without asking for $some_name for example: $foo = $_REQUEST["some_name"]; </p>

<p>I need just this value "123456" (near this: "[some_name]").</p>
