Thu, December 2, 2021
 
https://devcodepro.comdevcodepro
X
InterServer Web Hosting and VPS
Home · Latest · Trends
1

PHP 8 join(): Argument #1 ($pieces) must be of type array, string given

$id = join(',',$val);

##replace with

if (!empty($val)) {
 $id = join(',', $val);
}else{
 $id = join(',', array_filter(array(@$val)));
}
rated 1 times (1) (0)
comments: 0 / hits: 780  / 8 months ago, sun, may 2, 21, 03:34:47
More From » PHP
 

Comments

There are no comments for this Snippet yet
Only authorized users can post. Please sign in first, or register a free account
Login with Google
 
Share
Posted
go
Member since May 1, 2021
Total Code Snippets: 2
Total Comments: 0
Location: n/a
go snippets
8 months ago, sat, may 1, 21, 5:53:49
comments: 0 / hits: 217
PHP