I make a table with number 22 as the column name. How to access this column?
content:
I\'ve tryed thest
$obj = Tablename::f
You can use the following syntax, as found in the variable variables topic in the PHP documentation:
$obj->{'22'};
...
Curly braces may also be used, to clearly delimit the property name. They are most useful when accessing values within a property that contains an array, when the property name is made of mulitple parts, or when the property name contains characters that are not otherwise valid (e.g. from json_decode() or SimpleXML).