Hello,
I've been trying to think of a way to dynamically return property values for a class using __call instead of creating a slew of functions whose only purpose would be to return those values. The idea I have is to be able to request ( for example ) $this->fetch_PersonFirstName() and have the class check if $this->person["first_name"...
I am creating a custom user control and I am wondering how do you set an initial value for a property during design time? I have a property called Alignment that has 4 enum values TopRight, TopLeft, BottomRight and BottomLeft. So, when a user drops the user control onto a Form, I want the initial value of the property to be always Bott...
I'm trying to figure out why this works:
$joe = "hey joe";
$something = "joe";
print_r(${$something});
But this doesn't:
$joe["where_you_going"] = "hey joe";
$something = "joe[where_you_going]";
print_r(${$something});
Why is this? Is there a way to do what I attempted in the second example?
...