# PHP: Double variable filenames

**URL:** <https://forum.kirupa.com/t/php-double-variable-filenames/298567>\
**Category:** programming\
**Created:** [October 21, 2009, 7:48am UTC](https://forum.kirupa.com/t/php-double-variable-filenames/298567 "2009-10-21T07:48:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![speedy\_rudolf](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@speedy\_rudolf](https://forum.kirupa.com/u/speedy_rudolf)\
**Post date:** [October 21, 2009, 7:48am UTC](https://forum.kirupa.com/t/php-double-variable-filenames/298567/1 "2009-10-21T07:48:30Z")

</div>

Hi. I was wondering: can files be named using 2 variables?  
something like:

```auto
$a="not";
$b="_now";
touch("$a$b.txt");

```

If anyone knows how to do this, please tell me. Thank you.
