HOW CAN I COMBINED TWO VARIABLE TOGETHER?

Awadhendra Tiwari

Total Post:510

Points:2550
Posted by  Awadhendra Tiwari
PHP 
PHP
 1310  View(s)
Ratings:
Rate this:
  1. Awadhendra Tiwari

    Post:510

    Points:2550
    How can I combined two variable together?

    $var1 = 'Welcome to ';
    $var2 = 'TechInterviews.com';
    First Mechanism for combining
    $var 3 = $var1.$var2;Second Mechanism for combining$var3 = "$var1$var2";

  1. KIRTI SHARMA

    Post:4

    Points:20
    How can I combined two variable together?

    $var1 = 'Welcome to ';
    $var2 = 'TechInterviews.com';
    First Mechanism for combining
    echo $var1.$var2;
    Second Mechanism for combining
    echo $var1,$var2;
    Third Mechanism for combining
    echo "$var1$var2";

      Modified On Mar-08-2017 06:06:52 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!