How to dynamically assign a value to a class property in PHP?
Posted
by yanis
on Stack Overflow
See other posts from Stack Overflow
or by yanis
Published on 2010-06-11T11:38:32Z
Indexed on
2010/06/11
11:52 UTC
Read the original article
Hit count: 316
I would like to assign a value in a class property dynamically (that is referring to it using a variable).
#Something like:
setPropValue($obj, $propName, $value);
© Stack Overflow or respective owner