[Solved] php foreach array id value
You didn’t provided proper source code of your array. So I couldn’t understand properly I think, still I’m trying to answer. If your ID number and text both are stored in $list array values, like this – $list = array( ‘id1:text 1’, ‘id2:text 2’, … ); then you could do something like this $idArr= array(); … Read more