I'm creating arrays containing all the EmailMsg objects read from the database.
I merge two arrays of 2 different sets of email message objects (yes, it's weird...but that's how it has to work for this application):
Code: Select all
$aAllMessages = array_merge($aSomeMessages,$aOtherMessages);Code: Select all
foreach ($aAllMessages as $msg) {
print "Message [".$msg->subject."] was sent on ".$msg->sent_date."<br>";
}