This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by precious_coins
over 9 years

Could someone please let me know why this code doesn't work?

Here’s my code:

<body>
    <!-- Write your PHP code below!-->
<?php   
$myName = "Robert";
$myAge = 26; ?>
echo $myName;
echo $myAge;
<p>
        
    </p>   
</body>

And this is the output: echo $myName; echo $myAge;

I’m not sure at all what I’m doing wrong. Perhaps someone could enlighten me?

Answer 53c5165580ff33c75b0048f4

1 vote

Permalink

You have close PHP too fast. ECHO is PHP function. I will see you how to change it ;)

points
Submitted by Patryk
over 9 years

1 comments

precious_coins over 9 years

Thanks, much appreciated.