echo "$InputString" . '<BR>'; // for HTML echo "$InputString\n"; // for output to screen
>>Hi, >> >>I have this array: >> >>$array = array(element1, element2, element3, element4) >> >>I want to list all elements of this array, so i used: >> >> foreach ($array as $index => $element) { >> $InputString = "$element"; >> echo "$InputString"; >> } >> >>but this code lists the elements like this: element1 element2 element3 element4 >> >>How can i list my elements like this: >>element1 >>element2 >>element3 >>element4 >> >> >>Thanks >> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php