ZEND_TRUTH

ZEND_TRUTH -- Cast a value to zend_bool

Descrizione

#include <zend.h>

zend_bool ZEND_TRUTH ( mixed x )

A simple conversion macro, actually defined as ((x) ? 1 : 0)

Elenco dei parametri

x

Value to cast

Valori restituiti

1 if x was considered TRUE, else 0