<?php
// your code goes here
class Foo
{
public $bar = 'I am bar';
}
$foo = new Foo;
$property = 'bar';
$array = ['one', 'bar', 'three'];
echo $foo->$property . "\n";
echo $foo->$array[1];
PD9waHAKCi8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCmNsYXNzIEZvbwp7CglwdWJsaWMgJGJhciA9ICdJIGFtIGJhcic7Cn0KCiRmb28gPSBuZXcgRm9vOwokcHJvcGVydHkgPSAnYmFyJzsKJGFycmF5ID0gWydvbmUnLCAnYmFyJywgJ3RocmVlJ107CgplY2hvICRmb28tPiRwcm9wZXJ0eSAuICJcbiI7CmVjaG8gJGZvby0+JGFycmF5WzFdOw==