How can i check to see if a specific integer is within a array? For a switch statement.

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 13:20 UTC
Read the original article Hit count: 154

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