<?php $arr = array('h','e','l','l','o'); $string = implode($arr, ''); $string = implode($arr, '|'); ?>