WordPress.org

Forums

[closed] multi-dimensional array in theme not working (2 posts)

  1. walkacrossfire
    Member
    Posted 7 years ago #

    I'm trying to build a multi-dimensional array from a database query in a theme page. if I do this: $array[$name]=$value; it works fine,but, as soonas I try this: $array[$name][0]=$value; or $array[$name]=array(0=>$value); it fails. Anyone know why? Please help!

  2. Chris_K
    Member
    Posted 7 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.