You are here:  » PHP Deprecated: implode()


PHP Deprecated: implode()

Submitted by Perce2 on Sat, 2022-01-15 11:20 in

Hi David,

Have noticed a new error log containing the following;

PHP Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /home/xxxxxxxxxxx/public_html/sitesearch.php on line 168

Not sure what parameters to swap. Any help would be much appreciated.

Thanks,
Graham

Submitted by support on Sat, 2022-01-15 11:55

Hi Graham,

Have a look for this code;

      $match_q = implode($allWords," ");

...and then to swap the parameters REPLACE with:

      $match_q = implode(" ",$allWords);

Cheers,
David.
--
PriceTapestry.com

Submitted by Perce2 on Sat, 2022-01-15 13:07

Perfect!

First class support, as always...

Thanks David