Posted by Sjoerd on 11/18/98 11:41
J Huntley Palmer wrote:
> How may I concatenate the index respective questions and answers into
> one string per index using ONE foreach loop? I do not want to use
> numerical indexes just the named ones as below.
Do you mean this:
for ($i = 0; $i < count($arr[0]); $i++) {
$result[] = $arr[0][$i].$arr[1][$i];
}
Navigation:
[Reply to this message]
|