Now lets see what it means.
What you probably mean is "if there are any elements in the array 'user_egg' then ..." which can be expressed as
if (@user_geg) { }
See - much simpler.
Your original question as to why you have to add the -1 is probably answered by the meaninglessness of defined @user_geg.
In reply to Re: defined array question
by htoug
in thread defined array question
by toadi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |