identifying an array
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
identifying an array
Is there any way to determine if a variable is an other than checking to see if the keys of a variable are not empty? I couldn't think of one. One thing I have learned though is that there is usually a better way of doing *anything* than the only way that I can think of to do it.
Re: identifying an array
Hi.
This seems like an elegant and simple way, to check the keys. But you can always:
if yourVariable is an array then answer "Yes it is"
Craig
This seems like an elegant and simple way, to check the keys. But you can always:
if yourVariable is an array then answer "Yes it is"
Craig
Re: identifying an array
Ah. See, I like your way better because it seems much more readable.