mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Fixed PHP bug #52122 (implode(): No description of return value for degenerate case)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@300736 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
2482812e87
commit
b5b882e695
1 changed files with 3 additions and 0 deletions
|
@ -102,6 +102,9 @@ $comma_separated = implode(",", $array);
|
|||
|
||||
echo $comma_separated; // lastname,email,phone
|
||||
|
||||
// Empty string when using an empty array:
|
||||
var_dump(implode('hello', array())); // string(0) ""
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
Loading…
Reference in a new issue