Level 21
What are you trying to achieve in those if statements? Do you mean there are students who do not have names? :)
First of all, you need to do @foreach($students as $student) and not the other way round.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Please or to participate in this conversation.