Welcome Guest, Not a member yet? Register   Sign In
Looping multidimensional array just show one index while index is more than one
#2

(This post was last modified: 11-30-2021, 10:33 PM by iRedds.)

You re-declare the value each time.
PHP Code:
$msg['attachment'] = $attachlist;

//use 
$msg['attachment'][] = $attachlist;
//or 
$msg['attachment'][] = [
    
'name' => ....,
    
'subtype' => ....,
]; 
Reply


Messages In This Thread
RE: Looping multidimensional array just show one index while index is more than one - by iRedds - 11-30-2021, 07:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB