altergothen Posted March 16, 2009 Report Share 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}; } Quote Link to comment Share on other sites More sharing options...
LSW Posted March 16, 2009 Report Share Posted March 16, 2009 Try PHP.Net Quote Link to comment Share on other sites More sharing options...
lwsimon Posted March 16, 2009 Report Share 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. Quote Link to comment Share on other sites More sharing options...
altergothen Posted March 17, 2009 Author Report Share 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 Quote Link to comment Share on other sites More sharing options...
lm Posted March 17, 2009 Report Share Posted March 17, 2009 might help if you just type this in google search - good sources could come up. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.