Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.13

Request #2655 Sub variable in the variable
Submitted: 2004-11-01 03:22 UTC
From: boci at dravanet dot hu Assigned:
Status: Verified Package: HTML_Template_Flexy
PHP Version: 4.3.9 OS: Linux
Roadmaps: (Not assigned)    
Subscription  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2004-11-02 05:13 UTC
Package:
Bug Type:
Summary:
From: boci at dravanet dot hu
New email:
PHP Version: Package Version: OS:

 

 [2004-11-01 03:22 UTC] boci at dravanet dot hu
Description: ------------ Hi! I need a sub variable feature (if it's possible); example this: {somevariable[subarray][_SESSION[var]]:h} or this: {somevariable[subarray][{_SESSION[var]}]:h} Cow

Comments

 [2004-11-02 05:13 UTC] alan_k
eventually, this should be possible, I've not sat down and looked at it, there are a few design issues (in that raw strings are assumed to be keys, rather than variables). for the time being it's possible to do it by making a calling a function {getsomevalue(subarray,subarray,var):h} function getsomevalue($ar,$k,$ses) { return $ar[$k][$_SESSION[$ses]]; }