How can i check to see if a specific integer is within array?

Posted by Tapha on Stack Overflow See other posts from Stack Overflow or by Tapha
Published on 2010-05-22T13:08:10Z Indexed on 2010/05/22 14:01 UTC
Read the original article Hit count: 155

Filed under:

Is there a specific way to check for a specific integer within a switch statment.

For example.

$user = $ads[$i]->from_user;

To check for the number 2 as $i in the above expression.

© Stack Overflow or respective owner

Related posts about php