Hallo Hopsel,
Du kannst die automatische Typumwandlung von PHP nutzen:
!!$result
liefert dir auf jeden Fall ein boolsches Ergebnis.
Iiih! Dafür nimmt man (bool)$result
, soviel Aufwand muss schon sein! :-)
Schöne Grüße,
Johannes
Hallo Hopsel,
Du kannst die automatische Typumwandlung von PHP nutzen:
!!$result
liefert dir auf jeden Fall ein boolsches Ergebnis.
Iiih! Dafür nimmt man (bool)$result
, soviel Aufwand muss schon sein! :-)
Schöne Grüße,
Johannes