#test case failed

13 messages · Page 1 of 1 (latest)

regal agate
#

You’re not closing the if-statement correctly, that should result in a syntax error, also you opened a parentheses before the last strlen that you also never closed, which isn’t needed and can be removed. You can learn more about if-statements by checking out the documentation for it: https://www.php.net/manual/en/control-structures.if.php

red gorge
#

Please don't post screenshots in the future

wispy epoch
south bramble
#

@wispy epoch When sharing your code and error message, you enclose the beginning and end of the code with 3 backticks (```).
Note, use backticks (`), not single quotation marks (').

wispy epoch
#

this is in the code blocks

#

@south bramble thank you

south bramble
#

You are welcome!

wispy epoch
#

could you please help me in this code @south bramble

south bramble
#

Is this PHP code? I'm sorry, I don't know anything about PHP. But if you share your code in a code block and explain a bit more specifically what you're struggling with, I'm sure someone will help you.

#

@wispy epoch If possible, I recommend writing the language name and exercise name in the title of your post, deleting the original post screenshot, and replacing it with code blocks. That way, everyone will find it easier to help you.

wispy epoch
south bramble
#

If it's a general question rather than about how to write a specific part, it would probably be better to include all the details. I think it's better to write the question specifically.

wispy epoch
#

Ok thanks 🙏