mirror of
https://github.com/php/php-src.git
synced 2025-01-08 20:17:28 +08:00
24 lines
456 B
PHP
24 lines
456 B
PHP
--TEST--
|
|
implode() function
|
|
--INI--
|
|
error_reporting=2047
|
|
log_errors=0
|
|
display_errors=0
|
|
track_errors=1
|
|
--FILE--
|
|
<?php
|
|
echo implode(array())."\n";
|
|
echo implode('nothing', array())."\n";
|
|
echo implode(array('foo', 'bar', 'baz'))."\n";
|
|
echo implode(':', array('foo', 'bar', 'baz'))."\n";
|
|
echo implode(':', array('foo', array('bar', 'baz'), 'burp'))."\n";
|
|
echo $php_errormsg."\n";
|
|
?>
|
|
--EXPECTF--
|
|
|
|
|
|
foobarbaz
|
|
foo:bar:baz
|
|
foo:Array:burp
|
|
Array to string conversion
|