Rapide Advanced Adulte
 
 Web|Image|Shop|Video|News|Wmx|Mobile|Wiki|Ajouter ce moteur

     Manuel PHP     
Partager
 
 
Partager
Partager

 

Table :

.debug zval dump
.doubleval
.floatval()
.empty
.floatval
.get defined vars
.get resource type
.gettype
.import request variables
.intval
.is array
.is binary
.is bool
.is buffer
.is callable
.is double
.is float()
.is float
.is int
.is integer
.is int()
.is long
.is null
.is numeric
.is object
.is real
.is resource
.is scalar
.is string
.is unicode
.isset
.print r
.serialize
.settype
.strval
.unserialize
.unset
.var dump
.var export
 
   

  is_bool  


is_bool

(PHP 4, PHP 5)

is_bool --  Détermine si une variable est un booléen

Description

bool is_bool ( mixed var )

is_bool() détermine si la variable donnée est un booléen.

Liste de paramètres

var

La variable à évaluer.

Valeurs de retour

Retourne TRUE si var est un booléen, FALSE sinon.

Exemples

Exemple 1. Exemple avec is_bool()

<?php
$a
= false;
$b = 0;

// Si $a est un booléen, ceci sera vrai
if (is_bool($a)) {
    echo
"Oui, c'est un booléen.";
}

// Si $b n'est pas un booléen, ceci sera faux
if (is_bool($b)) {
    echo
"Oui, c'est un booléen.";
}
?>


    Annonces       
 

 Retour au chapitre Php

 

Top
 

Ajouter JungleKey.fr à votre Explorateur

 
 

About Us | © 2007 JungleKey




iBlack | Mobile | Wiki | Ajouter ce moteur
.