<html>
<head>
<title>joining the text</title>
</head>
<body>
<?php
$test_number7 = 7;
$connected_text = 'The value of my variable is :';
print ($connected_text . $test_number7);
?>
</body>
</html>
Okay,let's us examine this line first:<head>
<title>joining the text</title>
</head>
<body>
<?php
$test_number7 = 7;
$connected_text = 'The value of my variable is :';
print ($connected_text . $test_number7);
?>
</body>
</html>
print ($connected_text . $test_number7);
So,just take a look inside the round bracket,can u see the dot that between two variables?
well,that dot is actually join or connect both variable to become one sentence,do u trust me?well just run the code ,if u dare...hahaha
Beside,u also can do like this:
<?php
$test_number7 = 7;
print ('The value of my variable is :' . $test_number7);
?>
daaa,that's all!!!hikhikhik
N/NOTE:remember the dot or die..haha
No comments:
Post a Comment