Hướng dẫn php implode
(PHP 4, PHP 5, PHP 7, PHP 8) implode — Join array elements with a string Descriptionimplode(string Alternative signature (not supported with named arguments): implode(array
Legacy signature (deprecated as of PHP 7.4.0, removed as of PHP 8.0.0): implode(array Parametersseparator Optional. Defaults to an empty string. array The array of strings to implode. Return ValuesReturns a string containing a string representation of all the array elements in the same order, with the separator string between each element. Changelog
ExamplesExample #1 implode() example
= ['lastname', 'email', 'phone']; Notes
See Also
houston_roadrunner at yahoo dot com ¶ 13 years ago
"a1 is: '".implode("','",$a1)."' biziclop ¶ 1 year ago
wrap_implode(['path','to','file.php'], '/'); ASchmidt at Anamera dot net ¶ 3 years ago
implode( ',', $a ),'/', implode( ',', $b ); omar dot ajoue at kekanto dot com ¶ 9 years ago
= array('a', 'b', 'c'); Honk der Hase ¶ 2 years ago
mapped_implode(', ', $arr, ' is ');// output: x is 5, y is 7, z is 99, hello is World, 7 is Foo?>
Felix Rauch ¶ 6 years ago
__construct($title) alexey dot klimko at gmail dot com ¶ 11 years ago
Anonymous ¶ 9 years ago
masterandujar ¶ 10 years ago
Anonymous ¶ 7 years ago
Rafael Pereira ¶ 2 years ago
admin at lanlink dot net dot au ¶ 5 years ago
info at ensostudio dot ru ¶ 2 years ago
a' => 1, 'b' => 2]; info AT sinistercircuits DOT com ¶ 10 months ago
|