Advertisement
jeffersonvv

IN_ARRAY

Jun 1st, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.18 KB | None | 0 0
  1. $array = array('Jefferson', 'Ventura', 'contato@j2v.com.br');
  2.  
  3. if(in_array('Ventura', $array)){
  4.     echo 'Elemento Encontrado!';
  5. }else{
  6.     echo 'Elemento Não Encontrado!';
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement