Just declare $tdValues as an array. $tdValues = array(); And instead of using the string concatenation operator .= to add to it, use the array append operator [].
P.s. are you taking this data from another site? If so, then please ensure that you have the permission of the site owner to copy their data. Otherwise you are breaking copyright law.PHP Code:for($j = 0; $j < $totaltds; $j++){
$line= '';
/* build line data here */
$tdValues[] = $line; // add a new element to the array.
}




Reply With Quote