ң

implode

(PHP 3, PHP 4)

implode - .

string implode (string glue, array pieces)

, glue .

1. implode()
<?php $array = array('lastname', 'email', 'phone'); $comma_separated = implode(",", $array); print $comma_separated; // lastname,email,phone ?>

: implode() , , . explode() , , .

. explode() split() .


ң
htmlspecialchars join