Array index
Hello friends,
I am retrieving data from a table. I am using MySQL and PHP.
The query returns some records and stores in an array. If the query doesnt retrieve any record, array will not be created and displays an error on that line
foreach(arr1 as $ind=>&val)
{
}
but how can i find whether the array is created or not.
Is there any function to return lower bound and upper bound.
Thanx in advance
|