can I use two conditionals in a if statement?
if ($variableone, $variabletwo) { }
if not how can i write this
conditionlas
Moderators: egami, macek, gesf
- WiZARD
- Moderator
- Posts: 1240
- Joined: Thu Jun 20, 2002 10:14 pm
- Location: Ukraine, Crimea, Simferopol
- Contact:
juansoul wrote:can I use two conditionals in a if statement?
if ($variableone, $variabletwo) { }
if not how can i write this
Sorry, PHP is not C++ or something else....
Read manual about if,elseif,else.
"Sex,Drugs and Rock&Roll " replaced at "Sucks,Bugs and Plug&Play";


-
- Last Samuray
- Posts: 824
- Joined: Sun Jun 02, 2002 3:09 am
Code: Select all
if ($var1 == $var2 || $var2 != $var1 )
{
echp "Work";
}