mySql PHP - return object value with space in key
just come across something I've never came across before. I have a value in my table "Device Vendor" and i am returning the data os an object. usually I would call $ob->var_name but obviously $ob->Device Vendor will not work. How do I return the value? Regards You use the following syntax $ob->{'Device Vendor'} The syntax is this: $ob->{'Device Vendor'} I'm having a hard time trying to find an explicit reference to this in the PHP manual. I'm afraid that it needs to be inferred and you can only do so if you already know the answer. At Classes and Objects-> Properties they say: Class member