|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-10-05 14:27 UTC] bojan dot saksida at volja dot net
[2006-10-05 14:29 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 07:00:01 2026 UTC |
Description: ------------ I have a problem in if statment, where i if with more than one statment. i would prefer this method instead nested if statments. I also tried instead "or" i used "||" syntax. Reproduce code: --------------- $form['option_form']['method'] = "post"; if ($form['option_form']['method'] != "post" or $form['option_form']['method'] != "get" or $form['option_form']['method'] != "submit") { die ("In this case it will run this part of IF statment, but it shoudn't"); } else { die("This part it shoudnt do it."); }