Visualizzazione dei risultati da 1 a 2 su 2

Discussione: test php

  1. #1
    Utente di HTML.it
    Registrato dal
    Feb 2006
    Messaggi
    495

    test php

    strano test:

    $stringa_vuota='

    </p>';
    $stringa_vuota=str_replace('

    ','',$stringa_vuota); $stringa_vuota=str_replace('</p>','',$stringa_vuota);
    if($stringa_vuota==''){
    echo'aaa';
    }else {echo'bbb';}

    perchč mi esce sempre bbb?? io vorrei avere aaa. ho provato anche con le funzioni empty e is_null...

  2. #2
    Moderatore di PHP L'avatar di Alhazred
    Registrato dal
    Oct 2003
    Messaggi
    12,505
    Ho provato il tuo codice e mi stampa aaa.

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.