Use $category_list = array() instead. When you do $category_list[] = array(), you are creating an array of arrays. $category_list becomes an array with 1 element and this element is an empty array. So use $category_list = array();
"Michael Zornek" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I want to create an empty array so I can add elements to it later > > I'm currently using: > $catergory_list[] =array(); > > But when I try to print this list I discover the element zero has the string > "Array" in it. How can I create a truly empty array? > > ~ Mike > -- > MikeZornek.com > New blog, new Q&A column, new content everywhere! > http://www.mikezornek.com > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php