# Variables...(i dunno what to name this thread)

**URL:** <https://forum.kirupa.com/t/variables-i-dunno-what-to-name-this-thread/174136>\
**Category:** Uncategorized\
**Created:** [January 3, 2006, 5:27am UTC](https://forum.kirupa.com/t/variables-i-dunno-what-to-name-this-thread/174136 "2006-01-03T05:27:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eyeofthestorm](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@eyeofthestorm](https://forum.kirupa.com/u/eyeofthestorm)\
**Post date:** [January 3, 2006, 5:27am UTC](https://forum.kirupa.com/t/variables-i-dunno-what-to-name-this-thread/174136/1 "2006-01-03T05:27:56Z")

</div>

ok…well if you know PHP…then you know that you can create a string variable…and then use the value of that variable to declare another variable. like this:

```php
<?php
$foo = "haha";
$i{$foo} = "success";
print $i{haha};
?>

```

and it would display “success”…

or like this:

```php
<?php
$foo = "haha";
$$foo = "success";
print $haha;
?>

```

and it would also display “success”.

do you know of any way that i can do this in actionscript?
