Voting

: two plus six?
(Example: nine)

The Note You're Voting On

pat dot leblanc at gmail dot com
13 years ago
It's worth noting that if you have keys that are long integer, such as '329462291595', they will be considered as such on a 64bits system, but will be of type string on a 32 bits system.

for example:
<?php

$importantKeys
= array('329462291595' =>null, 'ZZ291595' => null);

foreach(
array_keys($importantKeys) as $key){
echo
gettype($key)."\n";
}

?>

will return on a 64 bits system:
<?php
integer
string
?>

but on a 32 bits system:
<?php
string
string
?>

I hope it will save someone the huge headache I had :)

<< Back to user notes page

To Top