Oops, try again. It looks like you didn't print anything!


#1


Hi!! i have this error whit my code "Oops, try again. It looks like you didn't print anything!" i was watching the others erros in te forum, and i know im ok with my code, someone solve this yet??


<html>
<?php
  // get the length of a string and
  // print it to the screen
  $length = strlen("Juan");
 print($length);
?>
</html>


#2

What is printing to the screen? 4?

The SCT may be examing the code directly and does not expect parens.

print $length;

#3

that was the last modification i did, anyway, i tried without parens and was the same error


#4

Did you try,

print strlen("Juan");

?


#5

yup!, and tried with echo too


#6

all right, i solved this, the detail is in the navigator, i changed to IE and it worked, thanks for the help anyway


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.