altergothen Posted March 16, 2009 Report Posted March 16, 2009 Hi there Please can someone point me in the right direction, where in the documentation can I read up on the following notation?... I am trying to figure out what the purpose of the braces around the variable are? $this->{$spec} if (is_string($spec)) { $subForm = $this->{$spec}; }
lwsimon Posted March 16, 2009 Report Posted March 16, 2009 I believe that is a variable variable. As in, $spec contains the name of the property you're trying to access on class that snippet is a member of.
altergothen Posted March 17, 2009 Author Report Posted March 17, 2009 (edited) Ahh! variable variables!!! Thank you very much lwsimon PHP.Net is great if you just know what you are looking for Edited March 17, 2009 by altergothen
lm Posted March 17, 2009 Report Posted March 17, 2009 might help if you just type this in google search - good sources could come up.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now