Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jul 2011
    Posts
    118
    Thanks
    6
    Thanked 0 Times in 0 Posts

    How to find size of array?

    Hey everyone,

    I'm just looking for a way of assigning the size of an array to a separate var.

    So I basically want to get an array and detect the amount of items within it, then assign that number to a var.

    Is this possible?

    Thanks

  • #2

  • #3
    Regular Coder
    Join Date
    Jul 2011
    Posts
    118
    Thanks
    6
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by gvre View Post
    PHP Code:
    $size count($array); 
    Wonderful, thank you :-)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •