Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /home/——/imcartsend.php:25 Stack trace: #0 /home/_______/res/imcartsend.php(25): implode(‘;’, ‘Note’)
#1 {main} thrown in /home/________/imcartsend.php on line 25
on line 25
$imUserDataCSV = implode(";",$imUserDataCSVH) . "n" . implode(";",
$imUserDataCSV);
Gives me error this error the internet page, how can we edit new php8, how can we delete the error new line.
Thank you
$imUserDataCSV = implode($imUserDataCSVH ";") . "n" . implode($imUserDataCSVH ";"
);
always same error
2
Answers
Entered but it doesn't work, the problem is solved but then it doesn't automatically send e-mails
You’re question doesn’t provide much information, but based on the error you can at least prevent it by doing the following:
implode requires an array, so the if statement checks that the variable
$imUserDataCSVH
is an array.