Visualizzazione dei risultati da 1 a 6 su 6
  1. #1

    [PHP] Condizione if con array

    Come si fa a fare una cosa del genere?

    $array = array(1, 2, 3, 4);

    if( $valore == ogni elemento dell'$array ){

    }

    I will use Google before asking dumb questions.
    http://www.weiterbildungsblog.de/archives/google.jpg

  2. #2

  3. #3
    Utente di HTML.it L'avatar di _kime_
    Registrato dal
    Sep 2003
    Messaggi
    311
    scritto cazzata?
    |
    |
    V
    Codice PHP:
    if(in_array($var $array)){

    + / Powered by Ubuntu 4.10 "The Warty Warthog"

    + / Manuale PHP.net

    + / Think Free

  4. #4
    [supersaibal]Originariamente inviato da _kime_
    scritto cazzata?
    |
    |
    V
    Codice PHP:
    if(in_array($var $array)){

    [/supersaibal]

    no.. però dopo il mio link non c'era bisogno no?

  5. #5
    Utente di HTML.it L'avatar di _kime_
    Registrato dal
    Sep 2003
    Messaggi
    311
    come faccio a sapere che hai scritto stavo cercando nel manuale...
    + / Powered by Ubuntu 4.10 "The Warty Warthog"

    + / Manuale PHP.net

    + / Think Free

  6. #6
    Grazie.

    I will use Google before asking dumb questions.
    http://www.weiterbildungsblog.de/archives/google.jpg

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.