My experience in programming to not forget and maybe share something useful with others :)
Friday, April 22, 2011
Float key for new element of array
Spent lot of time today to find bug...
Adding new element to array:
$table[$k]=$ttl;
What wrong here? If $k will be float, key will be other, transformed to integer. It's not a bug, it's 'feature' (see manual), but... Strange feature.
No comments:
Post a Comment