How many number of elements can an array in PHP hold? like 300? 10000? or
Jump to Post
I dont' think there is a limit: http://www.php.net/manual/en/language.types.array.php…
but consider: an array can contain strings and/or ints, a string max lenght is ~2GB, the int limit is platform dependent, default is two billions.
All 2 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.