Voor de query wil ik nu dit gedeelte "naam","wat","type","adres","slaapkamers","verdieping","prijs","info","verkocht","vrijvanaf","bezichtigen"
uitkomen.
$arrVelden = array("naam","wat","type","adres","slaapkamers","verdieping","prijs","info","verkocht","vrijvanaf","bezichtigen");
foreach ($arrVelden as &$value) {
echo $value;
// Of wat je ook wilt doen...
}
$mijnArray = Array("naam","wat","type","adres","slaapkamers","verdieping","prijs","info","verkocht","vrijvanaf","bezichtigen");
echo implode(', ', $mijnArray); // Krijg je wat je wilt