What's the maximum number of keys for an array in php

后端 未结 10 1608
一整个雨季
一整个雨季 2021-02-08 03:32

I\'m writing a php script where I call

$lines = file(\'base_list.txt\');

to break a file up into an array. The file has over 100,000 lines in

10条回答
  •  -上瘾入骨i
    2021-02-08 04:22

    You should use count to count the number of items in an array, not print_r. What if output of this large array was aborted because of timeouts or something else? Or some bug/feature in print_r?

提交回复
热议问题