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. Quote Link to comment 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] Quote Link to comment 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. 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.