PHP class - PHPMailer unexpected 'use' (T_USE)
问题 I would to like use the PHPMailer classes for testing. After reading the official documentation I see there are two ways to include them in my project: 1) Using composer 2) Copying contents and include paths I don't know how do use the first option, composer. The second option, copying contents and include paths, looks easier. I have made a file named test.php with these lines of code: <?php session_start(); if(isset($_SESSION['username']) and $_SESSION['username'] != ''){ use PHPMailer