ociugi Posted November 20, 2007 Share Posted November 20, 2007 what is the maximum element of an array? Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted November 20, 2007 Share Posted November 20, 2007 I think that would be the highest key in the array. Quote Link to comment Share on other sites More sharing options...
s0c0 Posted November 20, 2007 Share Posted November 20, 2007 Your question could have many answers, I would be more specific. If you are looking for the key with the highest value in an array use the max() function. Quote Link to comment Share on other sites More sharing options...
ociugi Posted November 20, 2007 Author Share Posted November 20, 2007 i mean is how many elements that the array can hold. Quote Link to comment Share on other sites More sharing options...
pranav_kavi Posted November 20, 2007 Share Posted November 20, 2007 I don't think there is a limit on how big an array can be, but there is a limit on how much memory your script can use. The 'memory_limit' directive in the php.ini configuration file holds the max amount of memory your scripts can consume. Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted November 20, 2007 Share Posted November 20, 2007 I think an array can hold an infinite amount of keys (elements), but you may want to check out the manual for more information about arrays. http://us.php.net/manual/en/ref.array.php Quote Link to comment Share on other sites More sharing options...
ociugi Posted November 20, 2007 Author Share Posted November 20, 2007 thanks for the help guys Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.