i want to know how to get all fields value search by array.

i have array that s

my table is

  id   content

  1    zahr
  2    hai
  and so on

$a = {2,3,4,5,43,32};

i have to take the contents by this id(from array "a").

i know, i can use "for" loop for getting each element from mysql.

but i would like to use any filters or any predefined function

thanks and advance

Accepted Answer

use IN

Written by Reigel
This page was build to provide you fast access to the question and the direct accepted answer.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki