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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -