Support the ongoing development of Laravel.io →
posted 9 years ago
Input
Last updated 2 years ago.
0

the 2 statements are not strictly equivalent. Let's imagine there's always a foo input on the form then isset will always return true (even if the input value is an empty string), therefore the old expression would always return false

on the other hand, the new version checks not only if the input is present but also if it has a non empty value so it will return true if foo is empty and false if it's filled (since the expression uses negation) which is probably more what you want

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Sharping sharping Joined 28 Jun 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.