snaggy
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by snaggy
-
-
I have a loop that should create every n times an array called "arrayname_$n" but how can I declare a variable whose name's a variable?Maybe this all this has no sense.... anyway howelse can I do it?byethx
-
xpath problem
in XML
here my structure<structure> <menu id="main"> <item/> <item/> <item> <menu id="products"> <item/> <item/> </menu> </item> </menu><menu id="second"> <item/> <item> <menu id="buddies"> <item/> </menu> </item> </menu></structure>or something like that...anyway, I want to select through xPath the element menu with specified id (let's say buddies) and all the ancestors menu items, obtaining an array of menus items (composed of items).i tried something like that but it doesn't work:ancestor-or-self:://menu[@id=products]//ancestor-or-self::menu[@id=products]ancestor-or-self::menu//menu[@id=products]what should I do?bye and thanks you all
variable as a variable name
in PHP
Posted
thanks a lot..!I'd suggest the php developer a more efficient syntax, something like $(".....".$varname."...") so that you can put it all in one sentence!!thanks bye!