Suspended
- Joined
- 30 Jan 2005
- Posts
- 467
hey guys, could someone show me how i can echo these variables using the heredoc way.
any help would be greatly appreciated
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

.
. The identifier can be anything as long as it contains "only alphanumeric characters and underscores, and must start with a non-digit character or underscore." So you can use "TEXT" or "IDENT" or whatever's most appropriate for your code block.