From array string php

How to create a string from an array? All values ​​are initially stored individually in an array. For example, I have an array of names and I need to get all the values ​​in one line.


Answer 1, authority 100%

In general, it is not clear what exactly you have, I will enter, as I understand it xD

<?
    $names = array('','','','');
    for($i=0; $i<count($names); $i++) {
        echo $names[$i]; // ...
    }
?>

Also, if you have to enter an array into a string then:

<?
    $names = array('','','','');
    $namesString = implode(' ', $names);
    //     ...
    echo $namesString;
    //:    
?>