Testing for array PHP
<p>I created an array below:</p>

<pre><code>$email[] = $post[0];

$email[].= $post[2];
</code></pre>

<p>The result is:</p>

<pre><code>$email = Array ( [JESSICA] =&gt; jessica.doe@laerdal.com ) 
</code></pre>

<p>I then pass it to a class constructor as so:</p>

<pre><code>$email_user = new Email($id,$email,$subject,$heading,$messages,$keys);
</code></pre>

<p>The class looks like this:</p>

<pre><code>class Email extends Users { 

protected $id;
public $strings;
public $user_email;
public $subject;
public $heading;
public $messages;
public $keys;

public function __construct($id,$user_email,$subject,$heading,$messages,$keys) {

parent::__construct($id);
$this-&gt;user_email = $user_email;
$this-&gt;subject = $subject;
$this-&gt;heading = $heading;
$this-&gt;messages = $messages;
$this-&gt;keys = $keys;
</code></pre>

<p>If I test to see if $this->user_email is an array using:</p>

<pre><code>if(is_array($this-&gt;user_email)) {
   echo "TRUE";
}
</code></pre>

<p>it returns false. How come?</p>

<p><em>*</em> I found the issue, a conflict with variables both named $email. Thanks for the help.</p>
