Question: Cant figure out how to solve these errors. Here is my current code: Customer Info

Cant figure out how to solve these errors.
Here is my current code:
'."Use only characters A-Z".''; echo ''."".''; } elseif(strlen($lname)>=20 || ctype_alpha(str_replace(' ','',$lname))==0) { echo "Invalid Last Name"; echo ' '."Name must be at most 20 alphabetic characters".' '."Phone number must contain only numeric characters; No Dashes".''; echo "Information Added"; echo '
'; echo ''."".''; } else { #Writes New Entry to Existing File $infoWriter = fopen("customerInfo.txt","a+"); fwrite($infoWriter,"$lname:$fname:$email:$pNumber".PHP_EOL); fclose($infoWriter); #Stores New File to Array $fileReader = file("customerInfo.txt",FILE_SKIP_EMPTY_LINES); $exploded = array(); for($i=0;$i'; echo "Information Added"; echo '
'; echo ''; echo '
'; echo ' '; for($i=0;$i'; echo "First Name"; echo ' '; echo ''; echo "Last Name"; echo ' '; echo ''; echo "Email"; echo ' '; echo ''; echo "Phone Number"; echo ' '; echo ''; echo $explodedFix[$i][0]; echo ' '; echo ''; echo $explodedFix[$i][1]; echo ' '; echo ''; echo $explodedFix[$i][2]; echo ' '; echo ''; echo $explodedFix[$i][3]; echo ' '; echo ''; } Invalid Email Address Email cannot exceed 20 characters Try again? Information Added Notice: Undefined variable: explodedFix in C:lxampplhtdocsMyHomework TestllupdateInfo.php on line 125 Warning: sizeof): Parameter must be an array or an object that implements Countable in C:lxamppihtdocsMyHomeworkTestllupdateInfo.php on line 125 First NameLast Nameail hoe Number
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
