PDA

View Full Version : string concatenation?


17th January 2006, 04:08 PM
Hi,

How can we concatenate strings in a <Section While> loop?
See example below.

Thanks.


<Section While>

<Pattern>
Regexp {$stock_symbol}
</Pattern>


#NEEDED equivalent code: $stock_symbol_array .= ' '.$stock_symbol;
#
# (desired result: $stock_symbol_array="AMGN GLW AAPL IBM DELL" ...)


</Section>

anh
11th March 2006, 02:10 AM
<Section While>
<Pattern>
Regexp {$stock_symbol}
</Pattern>

#add this
<Section>
Define $stock_symbol_array {$stock_symbol_array} {stock_symbol}
</Section>


#NEEDED equivalent code: $stock_symbol_array .= ' '.$stock_symbol;
#
# (desired result: $stock_symbol_array="AMGN GLW AAPL IBM DELL" ...)

</Section>