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
#test case failed
13 messages · Page 1 of 1 (latest)
Please don't post screenshots in the future
Noted
@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 (').
You are welcome!
could you please help me in this code @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.
Did I have to write the whole code here in code blocks?
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.
Ok thanks 🙏