[php-src] Issue #9864: Implode after array_pop
| From: | iamvisionaryjohn | Date: | Tue, 01 Nov 2022 00:48:11 +0000 |
| Subject: | [php-src] Issue #9864: Implode after array_pop | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-242720@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/9864
Author: iamvisionaryjohn
### Description
The following code:
```php
<?php
$a=array("red","green","blue");
$b = implode(', ',array_pop($a));
print_r($b);
Resulted in this output:
PHP Warning: implode(): Invalid arguments passed
But I expected this output instead:
red, green
### PHP Version
8.1
### Operating System
Windows