Soldato
Hi guys in PHP should you do this:
if (condition)
(
code
}
if (condition)
{
code
}
else
{
do this
}
OR IS this the correct way:
if (condition)
{
code
}
elseif (condition)
{
code
}
else
{
code
}
I only ask as I have done the first example and some scripts work, others don't seem to work for all statements.
if (condition)
(
code
}
if (condition)
{
code
}
else
{
do this
}
OR IS this the correct way:
if (condition)
{
code
}
elseif (condition)
{
code
}
else
{
code
}
I only ask as I have done the first example and some scripts work, others don't seem to work for all statements.