Changing a $_POST value that is returned, based on its value
<p>When I <code>print_r</code> it returns an array of data.</p>

<pre><code>print_r($_POST);
</code></pre>

<p>My input fields are standard address information and a patient id:</p>

<pre><code>Array ( [patient_id] =&gt; this [Last] =&gt; that [First] =&gt; Ted [ADDRESS1] =&gt; dey
[DOB] =&gt; [email] =&gt; [insurance_id] =&gt; [Phone] =&gt; [State] =&gt; CA [Zip] =&gt; 91236
[Status] =&gt; 3 [select_top] =&gt; 17 )
</code></pre>

<p>For status it's usually going to be entered as a 1, 2, or 3. </p>

<ul>
<li>1 equals Lead</li>
<li>2 equals Active</li>
<li>3 equals Inactive</li>
</ul>

<p>How can I change the POST value so when a 3 is entered it's returned as Inactive or 2 returned as Active?</p>

<p>Is it possible to do a <code>foreach</code> loop and just change the value to an alias or something?</p>

<pre><code>foreach($_POST as $key =&gt; $val){
    if($key == '3') $val = Inactive;
}
</code></pre>

<p>Any help would be greatly appreciated.</p>
