If i have an array such as,
$arr = ("content1","content2","content3",content4");
And i want to send 2 array elements at a time to a function so,
send content1 and content2 tgen send content3 and content4
i know i can do,
foreach ($arr as &$value) {
//send $value to function
}
so in pseudo code that would be something like
foreach ($arr and $arr1 as &$value1 and $value2) {
//send $value to function
}
so content1 and conten2 would be sent and then content3 and content4 etc then content and content6, they have to be sent in pairs.
$arr = ("content1","content2","content3",content4");
And i want to send 2 array elements at a time to a function so,
send content1 and content2 tgen send content3 and content4
i know i can do,
foreach ($arr as &$value) {
//send $value to function
}
so in pseudo code that would be something like
foreach ($arr and $arr1 as &$value1 and $value2) {
//send $value to function
}
so content1 and conten2 would be sent and then content3 and content4 etc then content and content6, they have to be sent in pairs.