dkintheuk Posted December 2, 2006 Share Posted December 2, 2006 Just looking for a simple way of finding out how big any array is, for instance how many elements are in it as if i have a loop adding items and then i want to work with them i'd like to know how big that array is before i start... possibly a silly question to be asking but just wondered if anyone had done the same.Cheers all. Link to comment https://forums.phpfreaks.com/topic/29244-how-big-has-an-array-become/ Share on other sites More sharing options...
taith Posted December 2, 2006 Share Posted December 2, 2006 that'll tell you how many fields you have in your array :-)[code]echo count($array);[/code] Link to comment https://forums.phpfreaks.com/topic/29244-how-big-has-an-array-become/#findComment-134035 Share on other sites More sharing options...
dkintheuk Posted December 3, 2006 Author Share Posted December 3, 2006 So obivous couldn't see it!Cheers,Rob. Link to comment https://forums.phpfreaks.com/topic/29244-how-big-has-an-array-become/#findComment-134417 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.