Top Ad unit 728 × 90

recent

How to Join Split Array (PHP)




Ask :

I've array
$split_variable[0] = "Hello"
$split_variable[1] = "Word"

and I'd like to Join those array
How  should I do?

Answer :

You Can use "Implode" Function


syntax : Implode(" ","$your_array");

$split_variable[0] = "Hello";
$split_variable[1] = "Word";
$my_variable = implode(" ",split_variable);

and the result :
$my_variable = "Hello Word"
How to Join Split Array (PHP) Reviewed by Ratih on 21.20.00 Rating: 5

Tidak ada komentar:

All Rights Reserved by La Ratih © 2012 - 2016
Copyright by Laratih.com

Formulir Kontak

Nama

Email *

Pesan *

Diberdayakan oleh Blogger.