echo'ing with heredoc

Suspended
Joined
30 Jan 2005
Posts
467
hey guys, could someone show me how i can echo these variables using the heredoc way.

Code:
<?php
$fighter = '01';
$hp = '10';
$power = '5';
$exp = '100';

?>

<img src=\"chars/<?=$fighter ?>.gif\"><br>
HP: <?=$hp ?><br>';
Power Level: <?=$power ?><br>';
Exp: <?=$exp ?>';

any help would be greatly appreciated :)
 
thanks :) na its not for any school project.

i got a couple of wee questions.

does the 'BUMCHIPS' have to be in capitals to work ? and would the heredoc way be the best way to echo what i have showed you ?

cheers
 
Back
Top Bottom