Log 1954
06/08/2023 2023-08-06 16:01$fullName = #שם מלא#;
$firstName = “”;
$lastName = “”;
$nameParts = explode(” “, $fullName);
$countNameParts = count($nameParts);
if ($countNameParts == 2) {
$firstName = $nameParts[0];
$lastName = $nameParts[1];
} elseif ($countNameParts == 3) {
$firstName = $nameParts[0];
$lastName = $nameParts[1] . ” ” . $nameParts[2];
}
return “First Name: ” . $firstName . “
“;
return “Last Name: ” . $lastName;