Multiple choice technology web technology

Which is the function, besides join(), that you use to join array elements with a string?

  1. strconcat(string $glue, array $pieces)
  2. implode ( string $glue , array $pieces )
  3. strcmp(array $pieces, string $concat, int $elementNumber)
  4. arrayConcat(array $pieces, string $concat, string $EOF)
Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In PHP, the implode() function is an alias of join(). Both functions join array elements with a glue string. The other options (strconcat, strcmp, arrayConcat) are either unrelated string comparison functions or fictitious functions that do not exist in PHP's standard library.