note 78559 deleted from function.intval by googleguy

From: Date: Tue, 22 Oct 2013 08:00:49 +0000
Subject: note 78559 deleted from function.intval by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-196721@lists.php.net to get a copy of this message
Note Submitter: shermy at shermys dot com ---- <?php $tmp_array = "123,232,141"; if (strval(intval($tmp_array)) == $tmp_array) { echo "'".intval($tmp_array)."' equals '$tmp_array'\n"; } else { echo "'".intval($tmp_array)."' does not equal '$tmp_array'\n"; } ?> Output: '123' does not equal '123,232,141'

« previous php.notes (#196721) next »