Is it possible to find the object named with specific string.

For example i can use that in php 

```
$objectname="foo";
$foo="bar";
echo $$objectname="bar";

```

is this possible? objectbyname would a proper function for this.