pdo encode result recordset to utf8

Solutions on MaxInterview for pdo encode result recordset to utf8 by the best coders in the world

showing results for - "pdo encode result recordset to utf8"
Emely
24 Jan 2020
1    function utf8_encode_recordset($recordset)
2    {
3        return array_map(function($record) {
4            return array_map("utf8_encode", $record);
5        }, $recordset);
6    }
7