note 64825 deleted from language.types.integer by bjori

From: Date: Fri, 21 Apr 2006 13:20:58 +0000
Subject: note 64825 deleted from language.types.integer by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-108925@lists.php.net to get a copy of this message
Note Submitter: egingell at sisna dot com Reason: in docs ---- Just in case anybody was wondering, intval(mixed num / mixed num) === (int) mixed num / mixed num. <?php $a = 11; $b = 5; $c = intval($a / $b); echo '$c = ' . $c; // echoes 2 $c = (int) $a / $b; echo '$c = ' . $c; // also echoes 2 ?>

« previous php.notes (#108925) next »