V
V
Vadim Gubiy2017-07-27 14:02:16
Laravel
Vadim Gubiy, 2017-07-27 14:02:16

Why is code execution interrupted?

Why is the execution of the method interrupted?
90538f144a3f4dad9ab2cfd2afb36ea9.png
b277f6c3f0af42b5be8ad635ee36a6cf.png
It's just that if like this, then he doesn't care about such an index or not, he executes the code to the end.
227f6bbaee5047899ca539da14677502.png
a67cc8f1ed9d4f3bbe160bc560dabcec.png
At me already simply burns wildly, I do not want to mold a heap of if'ov. Help pliz

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2017-07-27
@imbalancez

Use the tools of the framework to "not sculpt a bunch of ifs".

$user = array_get(unserialize($session), 'user');
$userId = array_get($user, 'id');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question