PHP - Add String to Array

Remy75

New Member
I am wondering how I can add a string variable to the current array. For example, I have an array called \[code\]$finalarray\[/code\]. Then I have a loop that adds a value on every run. Basically:\[code\]$finalarray = $results_array + string;\[/code\]A very basic structure. I am using this for MySQL so that I can retrieve the final array of the column. \[code\]$query = "SELECT * FROM table";$showresult = mysql_query($query);while($results_array = mysql_fetch_assoc($showresult)){ $finalarray = $finalarray + $results_array["column"];}\[/code\]Edit:Currently using this code (still not working):\[code\] $query =
 
Back
Top