eh...

the basic question is that you are pointing to:
$y[0]

when you have dimmed it as undeclared.
so it is null and it's not array.

when you directly use it:
$y

you declare it when you put something inside it.

so, if you want to pass some array in there:
$y=$myarray

or on multidim arrays:
$y=$myarray[5]

there is nothing more to it, but to keep keep up in your mind what kix sees.

when you don't say array has 5 values, how you can point to first ($y[0]) element when you haven't said that it even has any elements...

I hope this makes it simpler, as my mumble is starting to look really bad on the screen...
_________________________
!

download KiXnet