Yeah exactly 😃
Well first of all good luck for you.If you need any help please feel free to ask but remember do it your self first before asking ok 🙂
well return is nothing fancy.. It uses to pass values. In this case it return true and false. But if you want you can pass a variable as well for example:
function test()
{
$a=1;
$b=2;
$c=$a+$b;
return $c;
}
so when you call the function you can assign it to a variable and use that variable for what ever you want. ex:
$return_value=test();
so now $return_value will have the value of $c.
So in your case you are calling the "UserTaken" function in a IF condition. so as you know if we have true in a If condition that means it goes in side the If condition. So its easy, if there are records in the database I return true so it goes in to the IF condition and print the error. 😃
Hope this is clear enough for you.
Good luck,
Regards,
Niroshan