I am running a very simple if statement which works perfect until I add the two additional || (or) operators.
Here is my code:
if ($planDetails['Company']['name'] != 'company1'
|| $planDetails['PlanDetail']['name'] != 'pd-name1'
|| $planDetails['PlanDetail']['name'] != 'pd-name2') { echo "TEST"; }
I've checked my array data and table values to ensure they are precise in the names etc.. And this is not kicking. What am I doing wrong? When I remove the additional 2 || options, the first argument works fine, so I know my logic is correct.
What in the name am I doing wrong here. Someone please set me straight!
var_dump($planDetails);TEST", which is probably not what you meant.