• Questão 773

    What will the following code produce?

    define( 'CONSTANT', 1 );
    define( '_CONSTANT', 0 );
    define( 'EMPTY', '' );
    
    if( !empty( EMPTY ) ) {
    	if( !( ( boolean ) _CONSTANT ) ) {
    		print 'One';
    	}
    }
    else if( constant( 'CONSTANT' ) == 1 ) {
    	print 'Two';
    }
    
    A.
    One
    B.
    Two
    C.
    Syntax Error
    D.
    Nothing

Discussão (0)

  • Você precisa estar logado para fazer um comentário!

    Login