What function should you use to join array elements with a glue string?



What function should you use to join array elements with a glue string?..

Answer / Piyush Kumar Mishra

"You can use implode() function to join array elements using a glue string. For example: $glue = ', '; $array = [1, 2, 3]; echo implode($glue, $array);"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is strcmp?

1 Answers  


What is the difference between pop3 IMAP and MAPI?

1 Answers  


Why session timeout is important?

1 Answers  


How many ways you can delete a session variable ?

6 Answers  


How to connect to mysql from a php script?

1 Answers  


Which variable declarations within a class is invalid in php?

0 Answers  


What is the difference between characters 34 and x34?

1 Answers  


Explain me what is x+ mode in fopen() used for?

1 Answers  


What is the output of the following php code?

1 Answers  


What are the advantages of triggers?

1 Answers  


How to read one character from a file?

1 Answers  


What is the function in PHP do not return a timestamp?

1 Answers  


Categories