Assumed input params to be strings and comparing with == but the membership forms include nested arrays with numeric keys. Since 'some string' evaluates to 0, 0 == 'some string' and the first string tested was first name, so that got clobbered. Using === instead has solved this.
Assumed input params to be strings and comparing with
==
but the membership forms include nested arrays with numeric keys. Since 'some string' evaluates to 0,0 == 'some string'
and the first string tested was first name, so that got clobbered. Using===
instead has solved this.