note 77544 deleted from function.is-string by danbrown

From: Date: Mon, 01 Nov 2010 14:09:01 +0000
Subject: note 77544 deleted from function.is-string by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-173651@lists.php.net to get a copy of this message
Note Submitter: yarco dot w at gmail dot com ---- re: php dot net at oui dot jp <?php $a = array('0' => 'zero'); // '0' // is different from $b = '0'; // '0' ?> Because when you use array, it will automatically change the key to integer if it could. So, it output: >php -r "print var_dump(array_keys(array('0' => ' zero', '1' => 'one')));" array(2) { [0]=> int(0) [1]=> int(1) } They are int type, not string.

« previous php.notes (#173651) next »