php - Getting information out of a multidimensional array for 1 specific item -
i have array structure :
0 => array (size=19) 'articleid' => int 10042 'eanbarcode' => string '0000000010042' (length=13) 'brand' => string 'lazzo' (length=5) 'season' => string 'ss16' (length=4) 'subseason' => string '' (length=0) 1 => array (size=19) 'articleid' => int 10043 'eanbarcode' => string '0000000010043' (length=13) 'brand' => string 'lazzo' (length=5) 'season' => string 'ss16' (length=4) 'subseason' => string '' (length=0)
now want use articleid
te product informations of article. figured first need find proper key number article , information out of key, can't figure out how it.
you can use foreach loop process on whole array , pick out each articleid
foreach ( $array $article ) { $articleid = $article['articleid']; // articleid }
Comments
Post a Comment