Return values for an array of ids

Posted 6 months ago by ludo1960

Hi guys, If I have an array of ids array(1001 1004) and want to transform that array to matched values in a table:

ID      ColA            
1001    apple       
1002    pear        
1003    orange
1004    banana

So the array becomes array(apple, banana)

foreach ( $id as $ids) {

  // Code goes here
}

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.