foreach $_POST.. is this bad?
<p>Is it bad practice to use use a foreach to make an array of all post data vs defining exactly what posts you are accepting?</p>

<pre><code>
class Foo { 

    function __construct()
    {
        foreach($_POST as $key => $var)
        {
            $this->post[] = $key = $var;
        } 
    }

    function bar()
    {
        echo $this->post['postdata'];
    }

}       
</code></pre>

<p>vs;</p>

<pre><code>
class Foo { 

    function __construct()
    {
        $this->post = array(
          "postdata" => $_POST['postdata']
        );
    }

    function bar()
    {
        echo $this->post['postdata'];
    }

}       
</code></pre>
