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

后端 未结 10 1605
一整个雨季
一整个雨季 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条回答
  •  遇见更好的自我
    2021-02-08 04:02

    every time ive run out of memory in PHP i've received an error message stating that fact. So, I'd also say that if you're running out of memory then the script wouldn't get to the print_r()

    try enabling auto_detect_line_endings in php.ini or by using
    ini_set('auto_detect_line_endings', 1). There may be some line endings that windows doesn't understand & this ini option could help. more info about this ini option can be found here

提交回复
热议问题