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

(11-30-2021, 07:53 PM)iRedds Wrote: You re-declare the value each time.
PHP Code:
$msg['attachment'] = $attachlist;

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

Thankyouu, it's work for me
Reply


Messages In This Thread
RE: Looping multidimensional array just show one index while index is more than one - by zhikri - 12-01-2021, 08:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB