note 109808 deleted from language.types.intro by danbrown

From: Date: Fri, 31 Aug 2012 15:45:26 +0000
Subject: note 109808 deleted from language.types.intro by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-190328@lists.php.net to get a copy of this message
Note Submitter: dksaini14 at yahoo dot in ---- <?php $integer_variable = 12; $string_variable1 = "Dinesh"; $string_variable2 = 'Vaishali'; $boolen_variable = TRUE; echo $integer_variable.' is a '.gettype($integer_variable).'<br>'; echo $string_variable1.' is a '.gettype($string_variable1).'<br>'; echo $string_variable2.' is a '.gettype($string_variable2).'<br>'; echo $boolen_variable.' is a '.gettype($boolen_variable).'<br>'; // output // 12 is a integer // Dinesh is a string // Vaishali is a string // 1 is a boolean //Notice that it accept value of $boolen_variable is 1 for true and 0 for false. ?>

« previous php.notes (#190328) next »