I have a simple PHP script that keeps throwing this bizarre error message:
Parse error: syntax error, unexpected '"string' (T_CONSTANT_ENCAPSED_STRING) in /script.php
 <?php
    error_reporting(-1);
    require_once "PHPMailer/PHPMailerAutoload.php";
    $api_key = "string"; // this line causes the error
    $payload = file_get_contents("php://input");
    $new_booking = json_decode($payload, true);
    $schedule_id = "123456";
    $schedule_link = "http://example.com";
    $passwd = "passwd";
    // email config
    $admin = [
        "name" => "Joe White", 
        "user" => "user@gmail.com", 
        "passwd" => "passwd"
    ];
    $max_time = 3; // hours
    $max_dist = 200; // miles
    /*
    Code goes on, but is commented out and therefore not included here
    */
    ?>
I saw somebody mention in another SO question that the issue might be CRLF line endings instead of CF, but I'm not sure.
