SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Bored One boredboi's Avatar
    Join Date
    Jul 2000
    Posts
    238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi...
    i'm working on a project involving DMOZ, which requires me to use multi-dimensional arrays.

    I have a few category paths, like...
    Arts: Visual Arts: Resources: Web Hosting

    and i want to create an array for each like this...
    $cat["arts"]["visual arts"]["resources"]["web hosting"] = 1;

    the category paths are not fixed, so how do i do this?

    thanks.


  2. #2
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I'm having trouble seeing what you're trying to accomplish, and how it would be of any use. Could you perhaps explain further?
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •