Hello I am working on a project and I have values that are stored in an array, my next step is to then put it in a message that will be mailed. My problem is when I try to test it out by echoing it just tells me “Array”
Code:
Loop I’m using
for($j =0; $j< $i; $j +=1 ){
$firstname = $firstnamearray[$j];
echo "
$firstname
";
}
array stored
if ($status == "Open"){
$firstnamearray[] = array($i => $firstname);
$lastnamearray[] = array($i => $lastname);
$statusarray[] = array($i => $status);
$i +=1;
}
Thank you for your time let me know if you need anything else!
it seems that $firstnamearray[$j] is an array too
try this
too see what is stored into $fistname