How to writ php variable

Hi…guy s

i am beginner.

some doubts php variable

how s arrangement two variable data store a single variable

thanks

Hi.

I’m having some trouble understanding you, but does this help?


<?php
$forename = 'Anthony';
$surname = 'Sterling';

echo $forename, ' ', $surname, PHP_EOL ;
/*
  Anthony Sterling
*/

my doubts

<?php
$myvariable=“test”;
echo $myvariable;
$myvariable2=“book”;
echo $myvariable2;
$bigvariable=“$myvariable”“$myvariable2”;
echo$bigvariable;
?>

two variable store a single variable
how s proper syntax

<?php
$myvariable=“test”;
echo $myvariable; // displays test
$myvariable2=“book”;
echo $myvariable2; // displays book
$bigvariable=$myvariable.$myvariable2;
echo $bigvariable;// displays testbook
?>

my problem solve

thanks

$bigvariable=$myvariable.$myvariable2;