fork download
  1. <?php
  2.  
  3.  
  4. $array = array(
  5. 1.0 => 1,
  6. 1.1 => 1.1
  7. );
  8.  
  9. var_dump($array);
  10.  
  11. var_dump(count($array));
  12. ?>
Success #stdin #stdout 0.02s 24448KB
stdin
Standard input is empty
stdout
array(1) {
  [1]=>
  float(1.1)
}
int(1)