Before that it's being pulled from a database (VarChar)..
Inside the function, I'd like to check and see if the variable has any text assigned to it, and if not, assign some..
I've tried several variants (Inlcuding below and count_chars()).. Any suggestions?
Thanks
David
Code: Select all
if( $teamName = "" ){
$teamName = "Team";
}