TheFiscster510
New member
how do i use the return() function in PHP?
Like if i had a function like say this
$user_text = "Hello";
function check($user_text) {
if ($user_text == "") {
return true;
}
else {
return false;
}
}
//How would i test the output? like would it be like
if(check($user_text)
= false {
echo "FALSE";
}
else
{
echo "TRUE";
}
Like if i had a function like say this
$user_text = "Hello";
function check($user_text) {
if ($user_text == "") {
return true;
}
else {
return false;
}
}
//How would i test the output? like would it be like
if(check($user_text)
echo "FALSE";
}
else
{
echo "TRUE";
}