Posted by J Huntley Palmer on 11/01/96 11:41
Sjoerd wrote:
> 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];
> }
>
This will also create an out of bounds error since there are named
indexes mixed in.
Navigation:
[Reply to this message]
|