I'm not very experienced with functions (read = never done any) so i need a little help on the theory and practical side.
Is this syntax correct?
login_1()
{
print("you are logged in!");
}
login_2()
{
print("sorry pal no access for you")
}
if($somevar==1)
{
login_1();
}
else
{
login_2();
}
Any and all help appreciated.