www.webdeveloper.com
Results 1 to 3 of 3

Thread: Can you combine 2 text variables into one?

  1. #1
    Join Date
    May 2009
    Posts
    124

    Can you combine 2 text variables into one?

    Let's say I have these variables:
    $text1 which is "This is text"
    and
    $text2 which is "More text"

    Is it possible to do this:
    $text3=text1+text2,
    so that $text3 would be "This is textMore text"?

    If not, is there a way to do it?
    Thanks!

  2. #2
    Join Date
    Jun 2008
    Posts
    62
    PHP Code:
    $text3=$text1.$text2

  3. #3
    Join Date
    May 2009
    Posts
    124
    Well that was pretty simple. Thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles