skip to Main Content
67 views
0 votes

Php – Why do I get a syntax error when I move use statements inside an if block?

I have a contact form that uses PHPmailer.
It works if I write it like this:
use PHPMailerPHPMailerPHPMailer;
use PHPMailerPHPMailerSMTP;<br

author
74 views
0 votes

foreach operation in PHP

I got 2 objects with 2 different evaluate():
$bulltin_name = $xpath->evaluate('//body/div/div/div/ul/li/a');
$bulltin_url = $xpath->evaluate('//body/div/div/div/ul/li/a/@href');

I try to extract

Back To Top
Search