#$img = new imageManipulate; // Parse Array with only elements that exist foreach ($location as $locate) { if (empty($locate)) { continue; } if ($locate == "United States") { $locate = "U.S."; } $loc[] .= $locate; } // Edited $location $userLocation = $s->strpLast($loc); $memSince = date("M j, Y", $row['user_created']); $userName = ucwords($row['user_name']); $month = $clean->numToMonth(substr($row['user_birthday'], 0, 2)); $day = substr($row['user_birthday'], 2, 2); $year = substr($row['user_birthday'], 4, 4); // If User has bithday entered if ($row['user_birthday']) { $bday = $month . " " . $day . ", " . $year; } else { $bday = null; } // If image doesn't exist, use default if ($row['user_image'] == null) { $row['user_image'] = "defaultProfilePic.png"; } // Image Location $imgLocation = BASE_URI . "images/users/profilePic/" . $row['user_image']; if (file_exists($imgLocation)) {