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

0 points
Submitted by Mckenna Adkins
almost 9 years

Why won't this work?

I’ve looked and looked at my code and I have no idea what is wrong with it. If anyone has any ideas, they would be GREATLY accepted.

Answer 553fd40751b8872b4f00013a

0 votes

Permalink

Your code looks just fine… reload the page and try it again

points
Submitted by tuchix
almost 9 years

1 comments

Mckenna Adkins almost 9 years

I tried that, it did not work.

Answer 554e1f8d86f552ebe100069f

0 votes

Permalink

I delete the first and last two lines, then it works! ;)

<?php
$myname="David";
echo"<p>$myname</p>";
// Get a partial string from within your own name
// and print it to the screen!
$partial = substr($myname, 0, 3);
print $partial;
?>

points
Submitted by Jessie P.
almost 9 years

Answer 556b85f5937676386d000386

0 votes

Permalink

This took FOREVER. Here’s the way to get it to work. answer the first part of code, hit submit, it will tell ask you if you used the strtoupper. Fill out that part of the code, then it will ask you if you used the strtolower. Fill that out and the code will pass. Final code looked like this:

points
Submitted by sktf
almost 9 years