What is the difference between IMPLODE & JOIN

后端 未结 5 1752
春和景丽
春和景丽 2021-02-04 23:10

What is the difference between IMPLODE & JOIN as both works the same way.



        
5条回答
  •  被撕碎了的回忆
    2021-02-04 23:56

    Join: Join is an Alias of implode().

    Example:

    
    

    Output: Test1,Test2,Test3.

    Implode: implode Returns a string from array elements.

    Example:

    
    

    Output: Test1,Test2,Test3.

    UPDATE:

    I tested them in Benchmark and they are same in speed. There is no difference between them.

提交回复
热议问题