Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2009
    Posts
    57
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Double variable filenames

    Hi. I was wondering: can files be named using 2 variables?
    something like:
    Code:
    $a="not";
    $b="_now";
    touch("$a$b.txt");
    If anyone knows how to do this, please tell me. Thank you.

  • #2
    Senior Coder djm0219's Avatar
    Join Date
    Aug 2003
    Location
    Wake Forest, North Carolina
    Posts
    1,293
    Thanks
    4
    Thanked 202 Times in 199 Posts
    PHP Code:
    touch($a $b '.txt'); 
    Dave .... HostMonster for all of your hosting needs

  • Users who have thanked djm0219 for this post:

    speedy_rudolf (10-21-2009)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •