How can conditional statements in PHP be optimized to avoid duplication and improve readability in survey programming?

To optimize conditional statements in PHP and improve readability in survey programming, you can use switch-case statements instead of multiple if-else statements. This can help avoid duplication of code and make the logic easier to follow.

// Example of using switch-case statements for survey programming
$answer = "A";

switch ($answer) {
    case "A":
        // Code for handling answer A
        break;
    case "B":
        // Code for handling answer B
        break;
    case "C":
        // Code for handling answer C
        break;
    default:
        // Code for handling default case
        break;
}