ociugi Posted November 20, 2007 Share Posted November 20, 2007 what is the maximum element of an array? Link to comment https://forums.phpfreaks.com/topic/78036-solved-maximum-element-of-an-array/ 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. Link to comment https://forums.phpfreaks.com/topic/78036-solved-maximum-element-of-an-array/#findComment-394966 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. Link to comment https://forums.phpfreaks.com/topic/78036-solved-maximum-element-of-an-array/#findComment-394969 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. Link to comment https://forums.phpfreaks.com/topic/78036-solved-maximum-element-of-an-array/#findComment-394980 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. Link to comment https://forums.phpfreaks.com/topic/78036-solved-maximum-element-of-an-array/#findComment-394990 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 Link to comment https://forums.phpfreaks.com/topic/78036-solved-maximum-element-of-an-array/#findComment-394993 Share on other sites More sharing options...
ociugi Posted November 20, 2007 Author Share Posted November 20, 2007 thanks for the help guys Link to comment https://forums.phpfreaks.com/topic/78036-solved-maximum-element-of-an-array/#findComment-395011 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.