Question: Create a PHP function entitled fn_fullName that takes three paramaters/inputs. The three parameters will be a persons first name, middle name, and last name. The
Create a PHP function entitled fn_fullName that takes three paramaters/inputs. The three parameters will be a persons first name, middle name, and last name. The function will concatenate these three items based on the following conditions and return the persons full name using the formatting mentioned below. Input Variables: $v_fName: Person's first name
$v_mName: Person's middle name $v_lName: Persons last name
Conditions & Expectations: -If $v_lName is blank, it should not be displayed. -The output should only display the first character of $v_mName if it's not blank. -Proper capitalization (first word upper case and others lowercase) regardless of how the paramaters are set. -Expected Output: "
-Example Ouput: "Timberlake, Justin R" --$v_fName = "JUSTIN"; --$v_mName = "Randall"; --$v_lName = "Timberlake":
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
