PDA

View Full Version : Printing


farid
03-23-2005, 07:52 PM
Hi!! I suppose this is an easy one for you,

<?php

$var1="Test";
$var2="Testing";

echo $var1, "<br>", $var2, "<br>";

?>

In this code I can print with no problem the variables, but how could I print them with a tabs of space??

Thanks!! :confused:

devinemke
03-24-2005, 12:35 AM
$var1 = 'Test';
$var2 = 'Testing';

echo $var1 . "\t" . $var2;

be advised that the "tab" will not (necessarily) be rendered out in your browser.