"Daniel", "nachname" => "C", "schule" => "wvss", "hatFuehrerschein" => true, "alter" => 67 ]; $phpJson = json_encode($phpArr); echo "arr into json transfered"; $file = file_put_contents("daniel.json", $phpJson); echo "file created";