I have a query that returns a row from database.
I would like to convert resulting array to strings, where each string is named as the dabase header, so I can use those strings in code.
I am currently doing it like below, but that doesn't seem like a good practice (or?)?
foreach($news_array as $position_in_main_array => $inner_array_member)
{
echo $inner_array_member["Date"];
echo $inner_array_member["Published"];
echo $inner_array_member["Title"];
echo $inner_array_member["Text"];
}
Thanks