I would like to do that :
$product[] = Array (
"article_title" => valeures,
"article_id" => ,
"article_value" => ,
"article_price" =>
"article_picture1" => ,
"article_picture2" => ,
"article_picture3" => ,
"article_picture4" => ,
"article_friends[]" => array ( "name" => ,
),
);
But I know it won’t work, I’ve been looking for hours on the net and on php.net, but I don’t know how to do.
What I want to do, is getting a product[] array that can handle product[1]; product [2] … and inside it, I got the same process : the “article_firends[]” will be autoincremented to do something like that :
In product[1] : artcile_friends[1][name] = John ; article_freidns[2][name] = Nina … and so on with product[2] …
This has been implementedin a foreach loop so it Should manage the keys automatically ..
How can I build it ?
Many Thanks,
Miles
doesn’t create a new
article_friendssub array. It creates a key in the parent $product array whose name happens to bearticle_friends[].Remove the quotes from around the key, so you end up with