strpos()
may return a boolean false
. It also may return 0
as the position found.
As such you need to use strict equality:
if (strpos($paidModules,'reminder') === false) {
// code...
}
In your case because reminder
is found in the zero position. Using ==
, PHP type-juggles 0 == false
as true.