smgeorge99
Programmer
How do you check the number of items in an array? More specifically, how can you check to see if an array has nothing in it?
I have a function that returns an array of ID's for a particular table based on certain criteria. It is valid for no rows to be returned. If rows are returned, then I loop through the array and do some processing. If no rows are returned, I just want to move on without looping through the array.
I can't seem to get this to work properly. Any help is greatly appreciated.
I have a function that returns an array of ID's for a particular table based on certain criteria. It is valid for no rows to be returned. If rows are returned, then I loop through the array and do some processing. If no rows are returned, I just want to move on without looping through the array.
I can't seem to get this to work properly. Any help is greatly appreciated.