Hello Everyone,
I need some help with arrays. I am working on a webmail client written in PHP and I'm adding email filtering to it.
I'm kind of new to PHP programming still so I'm sure it's just either a silly newbie mistake or I am completely on the wrong track. Here's my code:
$Blocked_Senders = split("\n",$pref["block-senders"]);
// first I'm taking a string from html form and splitting it by line
foreach ($Blocked_Senders as $filtered_sender) {
/* next I need to take each item from the above array
and add the type, field, and moveto fields to it making
it into a new array for use later
*/
$filters = Array(
Array(
"type" => 1,
"field" => 4,
"match" => $Blocked_Senders,
"moveto" => "filtered" );
}
Thanks in advance for any help you can provide for me!
HaloNiNE