{"id":28341,"date":"2021-05-21T17:09:00","date_gmt":"2021-05-21T14:09:00","guid":{"rendered":"https:\/\/themewp.inform.click\/?p=28341"},"modified":"2025-02-12T05:58:44","modified_gmt":"2025-02-12T02:58:44","slug":"iak-chytaty-fajl-csv-ta-excel-u-php-za-dopomohoiu-tablytsi-php","status":"publish","type":"post","link":"https:\/\/themewp.inform.click\/uk\/iak-chytaty-fajl-csv-ta-excel-u-php-za-dopomohoiu-tablytsi-php\/","title":{"rendered":"\u042f\u043a \u0447\u0438\u0442\u0430\u0442\u0438 \u0444\u0430\u0439\u043b CSV \u0442\u0430 Excel \u0443 PHP \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0456 Php"},"content":{"rendered":"<p>\u041f\u0440\u0430\u0446\u044e\u044e\u0447\u0438 \u043d\u0430\u0434 \u0432\u0435\u0431-\u0434\u043e\u0434\u0430\u0442\u043a\u0430\u043c\u0438, \u0456\u043d\u043e\u0434\u0456 \u043c\u0438 \u0441\u0442\u0438\u043a\u0430\u0454\u043c\u043e\u0441\u044c \u0456\u0437 \u0441\u0438\u0442\u0443\u0430\u0446\u0456\u0454\u044e, \u043a\u043e\u043b\u0438 \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0456\u043c\u043f\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438 \u0444\u0430\u0439\u043b CSV \u0430\u0431\u043e Excel \u0443 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u0438\u0445. \u0426\u0435 \u043a\u0440\u0430\u0449\u0438\u0439 \u0441\u043f\u043e\u0441\u0456\u0431 \u0456\u043c\u043f\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438 \u0432\u0435\u043b\u0438\u043a\u0456 \u0434\u0430\u043d\u0456 \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u0438\u0445, \u0430 \u043d\u0435 \u0432\u0432\u043e\u0434\u0438\u0442\u0438 \u0457\u0445 \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443.<\/p>\n<p><a href=\"https:\/\/phpspreadsheet.readthedocs.io\/en\/latest\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">PhpSpreadsheet<\/a> &#8211; \u0446\u0435 \u0431\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0430, \u044f\u043a\u0430 \u0434\u043e\u043f\u043e\u043c\u0430\u0433\u0430\u0454 \u0447\u0438\u0442\u0430\u0442\u0438 \u0444\u0430\u0439\u043b CSV \u0430\u0431\u043e Excel. \u0411\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0430 \u0437\u0430\u0431\u0435\u0437\u043f\u0435\u0447\u0443\u0454 \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u043a\u0443 \u0447\u0438\u0442\u0430\u043d\u043d\u044f \u0442\u0430 \u0437\u0430\u043f\u0438\u0441\u0443 \u0440\u0456\u0437\u043d\u0438\u0445 \u0442\u0438\u043f\u0456\u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0456\u0432 \u0444\u0430\u0439\u043b\u0456\u0432. \u041d\u0438\u0436\u0447\u0435 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u043e \u0437\u043d\u0456\u043c\u043e\u043a \u0435\u043a\u0440\u0430\u043d\u0430 \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u0443\u0432\u0430\u043d\u0438\u0445 \u0444\u043e\u0440\u043c\u0430\u0442\u0456\u0432 \u0444\u0430\u0439\u043b\u0456\u0432.<\/p>\n<p><a href=\"https:\/\/themewp.inform.click\/wp-content\/uploads\/2021\/04\/post-20521-6081ff1d2ea20.png\" data-rel=\"lightbox\"><img decoding=\"async\" class=\"SDStudio-light-box-enable SDStudio-editor-tools-md-imp\" src=\"https:\/\/themewp.inform.click\/wp-content\/uploads\/2021\/04\/post-20521-6081ff1d2ea20.png\" alt=\"\u042f\u043a \u0447\u0438\u0442\u0430\u0442\u0438 \u0444\u0430\u0439\u043b CSV \u0442\u0430 Excel \u0443 PHP \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0456 Php\" ><\/a><\/p>\n<p>\u041f\u0435\u0440\u0448 \u043d\u0456\u0436 \u044f \u043f\u0456\u0437\u043d\u0430\u0432 \u0446\u044e \u0431\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0443, \u044f \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0432 \u043c\u0435\u0442\u043e\u0434 <a href=\"https:\/\/php.net\/manual\/en\/function.fgetcsv.php\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">fgetcsv<\/a> \u0434\u043b\u044f \u0447\u0438\u0442\u0430\u043d\u043d\u044f \u0444\u0430\u0439\u043b\u0443 CSV. \u0410 \u0443 \u0432\u0438\u043f\u0430\u0434\u043a\u0443 \u0437 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 Excel \u043c\u0435\u043d\u0456 \u0441\u043f\u043e\u0447\u0430\u0442\u043a\u0443 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0431\u0443\u043b\u043e \u043f\u0435\u0440\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u0438 Excel \u0443 CSV, \u0430 \u043f\u043e\u0442\u0456\u043c \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u0438 \u0439\u043e\u0433\u043e \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e <code>fgetcsv()<\/code>\u0444\u0443\u043d\u043a\u0446\u0456\u0457.<\/p>\n<p>PhpSpreadsheet \u0441\u043f\u0440\u043e\u0449\u0443\u0454 \u0446\u0435 \u0437\u0430\u0432\u0434\u0430\u043d\u043d\u044f \u0434\u043b\u044f \u0440\u043e\u0437\u0440\u043e\u0431\u043d\u0438\u043a\u0456\u0432. \u0412\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0447\u0438 PhpSpreadsheet, \u043f\u0440\u043e\u0441\u0442\u0456\u0448\u0435 \u043e\u0431\u0440\u043e\u0431\u043b\u044f\u0442\u0438 \u0434\u0430\u043d\u0456 \u0437 \u0444\u0430\u0439\u043b\u0456\u0432 CSV \u0442\u0430 Excel. \u041a\u0440\u0456\u043c \u0442\u043e\u0433\u043e, \u0432\u0430\u043c \u043d\u0435 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u043f\u0435\u0440\u0435\u0442\u0432\u043e\u0440\u044e\u0432\u0430\u0442\u0438 Excel \u0443 CSV \u0434\u043b\u044f \u0439\u043e\u0433\u043e \u0447\u0438\u0442\u0430\u043d\u043d\u044f, \u0431\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0430 \u0431\u0435\u0437\u043f\u043e\u0441\u0435\u0440\u0435\u0434\u043d\u044c\u043e \u0447\u0438\u0442\u0430\u0454 \u0444\u0430\u0439\u043b Excel.<\/p>\n<p>\u0417 \u043e\u0433\u043b\u044f\u0434\u0443 \u043d\u0430 \u0446\u0435, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0434\u0438\u0432\u0438\u043c\u043e\u0441\u044f, \u044f\u043a \u0447\u0438\u0442\u0430\u0442\u0438 \u0444\u0430\u0439\u043b\u0438 CSV \u0442\u0430 Excel \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e PhpSpreadsheet.<\/p>\n<h3>\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f<\/h3>\n<p>\u0414\u043b\u044f \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u0446\u0456\u0454\u0457 \u0431\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0438 \u044f \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 <a href=\"https:\/\/getcomposer.org\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">Composer<\/a>. \u0412\u0456\u0434\u043a\u0440\u0438\u0439\u0442\u0435 \u0442\u0435\u0440\u043c\u0456\u043d\u0430\u043b \u0443 \u043a\u043e\u0440\u0435\u043d\u0435\u0432\u043e\u043c\u0443 \u043a\u0430\u0442\u0430\u043b\u043e\u0437\u0456 \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u0442\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0456\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<pre><code>composer require phpoffice\/phpspreadsheet<\/code><\/pre>\n<p>\u0423 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0456\u0439 \u0447\u0430\u0441\u0442\u0438\u043d\u0456 \u043f\u0456\u0434\u0440\u0443\u0447\u043d\u0438\u043a\u0430 \u044f \u0437\u0431\u0438\u0440\u0430\u044e\u0441\u044f \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u0438 \u0444\u0430\u0439\u043b\u0438 CSV \/ Excel \u0442\u0430 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0457\u0445 \u0434\u0430\u043d\u0456 \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u0438\u0445. \u0414\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u044f \u0441\u0442\u0432\u043e\u0440\u0438\u0432 \u0444\u0456\u043a\u0442\u0438\u0432\u043d\u0438\u0439 \u0444\u0430\u0439\u043b, \u044f\u043a\u0438\u0439 \u043c\u0456\u0441\u0442\u0438\u0442\u044c \u0441\u0442\u043e\u0432\u043f\u0446\u0456 \u0442\u0430 \u0434\u0430\u043d\u0456 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u043c \u0447\u0438\u043d\u043e\u043c:<\/p>\n<p><a href=\"https:\/\/themewp.inform.click\/wp-content\/uploads\/2021\/04\/post-20521-6081ff1d8f648.png\" data-rel=\"lightbox\"><img decoding=\"async\" class=\"SDStudio-light-box-enable SDStudio-editor-tools-md-imp\" src=\"https:\/\/themewp.inform.click\/wp-content\/uploads\/2021\/04\/post-20521-6081ff1d8f648.png\" alt=\"\u042f\u043a \u0447\u0438\u0442\u0430\u0442\u0438 \u0444\u0430\u0439\u043b CSV \u0442\u0430 Excel \u0443 PHP \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0456 Php\" ><\/a><\/p>\n<p>\u0429\u043e\u0431 \u0437\u0431\u0435\u0440\u0435\u0433\u0442\u0438 \u0446\u0456 \u0434\u0435\u0442\u0430\u043b\u0456, \u044f \u0442\u0430\u043a\u043e\u0436 \u0441\u0442\u0432\u043e\u0440\u0438\u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u044e &quot;\u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0456&quot; \u0432 \u0431\u0430\u0437\u0456 \u0434\u0430\u043d\u0438\u0445.<\/p>\n<pre><code>CREATE TABLE `users` (\u00a0`id` int(11) NOT NULL AUTO_INCREMENT,\n\u00a0`name` varchar(255) DEFAULT NULL,\n\u00a0`email` varchar(255) DEFAULT NULL,\n\u00a0PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;<\/code><\/pre>\n<p>\u0417\u0430\u0440\u0430\u0434\u0438 \u043f\u0456\u0434\u0440\u0443\u0447\u043d\u0438\u043a\u0430 \u044f \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e \u0432\u0438\u0449\u0435\u0437\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0456 \u0444\u0456\u043a\u0442\u0438\u0432\u043d\u0456 \u0434\u0430\u043d\u0456. \u041a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447 \u043f\u043e\u0432\u0438\u043d\u0435\u043d \u0437\u043c\u0456\u043d\u0438\u0442\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0442\u0430\u0431\u043b\u0438\u0446\u0456 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u043e \u0434\u043e \u0441\u0432\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0443 \u0434\u0430\u043d\u0438\u0445.<\/p>\n<p>\u0421\u0442\u0432\u043e\u0440\u0456\u0442\u044c <code>db.php<\/code>\u0456 \u0434\u043e\u0434\u0430\u0439\u0442\u0435 \u0432 \u043d\u044c\u043e\u0433\u043e \u043a\u043e\u0434 \u0434\u043b\u044f \u043f\u0456\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044f \u0434\u043e \u0431\u0430\u0437\u0438 \u0434\u0430\u043d\u0438\u0445.<\/p>\n<p><strong>db.php<\/strong><\/p>\n<pre><code>&lt;?php\n$db_host = 'DB_HOST';\n$db_username = 'DB_USERNAME';\n$db_password = 'DB_PASSWORD';\n$db_name = 'DB_NAME';\n\u00a0\u00a0\n$db = new mysqli($db_host, $db_username, $db_password, $db_name);\n\u00a0\u00a0\nif($db-&gt;connect_error){\n\u00a0\u00a0\u00a0\u00a0die(\"Unable to connect database: \". $db-&gt;connect_error);\n}<\/code><\/pre>\n<p>\u041e\u0431\u043e\u0432&#8217;\u044f\u0437\u043a\u043e\u0432\u043e \u0437\u0430\u043c\u0456\u043d\u0456\u0442\u044c \u0437\u0430\u043f\u043e\u0432\u043d\u044e\u0432\u0430\u0447\u0456 \u0444\u0430\u043a\u0442\u0438\u0447\u043d\u0438\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f\u043c\u0438.<\/p>\n<h3>\u041f\u0440\u043e\u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u0444\u0430\u0439\u043b CSV \/ Excel \u0443 PHP<\/h3>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u0438\u043a\u043e\u043d\u0430\u0454\u043c\u043e \u0432\u043b\u0430\u0441\u043d\u0435 \u043a\u043e\u0434\u0443\u0432\u0430\u043d\u043d\u044f. \u0421\u043f\u043e\u0447\u0430\u0442\u043a\u0443 \u0441\u0442\u0432\u043e\u0440\u0456\u0442\u044c \u0444\u043e\u0440\u043c\u0443, \u044f\u043a\u0430 \u043c\u0430\u0442\u0438\u043c\u0435 \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u0444\u0430\u0439\u043b\u0443 \u0442\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u043f\u043e\u0434\u0430\u043d\u043d\u044f. \u041a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447 \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0443\u0454 \u0441\u0432\u0456\u0439 \u0444\u0430\u0439\u043b CSV \/ Excel, \u043d\u0430\u0442\u0438\u0441\u043a\u0430\u044e\u0447\u0438 \u043a\u043d\u043e\u043f\u043a\u0443 &quot;\u041d\u0430\u0434\u0456\u0441\u043b\u0430\u0442\u0438&quot;. \u041f\u0456\u0441\u043b\u044f \u043f\u043e\u0434\u0430\u043d\u043d\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0456\u0437 \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0443 \u0441\u043b\u0456\u0434 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u044e &quot;\u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0456&quot;.<\/p>\n<p><strong>form.php<\/strong><\/p>\n<pre><code>&lt;form method=\"post\" enctype=\"multipart\/form-data\"&gt;\n\u00a0\u00a0\u00a0\u00a0&lt;div class=\"form-group\"&gt;\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;label for=\"exampleInputFile\"&gt;File Upload&lt;\/label&gt;\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;input type=\"file\" name=\"file\" class=\"form-control\" id=\"exampleInputFile\"&gt;\n\u00a0\u00a0\u00a0\u00a0&lt;\/div&gt;\n\u00a0\u00a0\u00a0\u00a0&lt;button type=\"submit\" name=\"submit\" class=\"btn btn-primary\"&gt;Submit&lt;\/button&gt;\n&lt;\/form&gt;<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0456 \u043a\u043e\u0434, \u044f\u043a\u0438\u0439 \u0431\u0443\u0434\u0435 \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u0438\u0439 \u043f\u0440\u0438 \u043f\u043e\u0434\u0430\u043d\u043d\u0456, \u0431\u0443\u0434\u0435 \u0442\u0430\u043a\u0438\u043c.<\/p>\n<pre><code>&lt;?php\nrequire_once 'vendor\/autoload.php';\nrequire_once 'db.php';\n\u00a0\u00a0\nuse PhpOfficePhpSpreadsheetSpreadsheet;\nuse PhpOfficePhpSpreadsheetReaderCsv;\nuse PhpOfficePhpSpreadsheetReaderXlsx;\n\u00a0\u00a0\nif (isset($_POST['submit'])) {\n\u00a0\n\u00a0\u00a0\u00a0\u00a0$file_mimes = array('text\/x-comma-separated-values', 'text\/comma-separated-values', 'application\/octet-stream', 'application\/vnd.ms-excel', 'application\/x-csv', 'text\/x-csv', 'text\/csv', 'application\/csv', 'application\/excel', 'application\/vnd.msexcel', 'text\/plain', 'application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet');\n\u00a0\u00a0\u00a0\u00a0\u00a0\n\u00a0\u00a0\u00a0\u00a0if(isset($_FILES['file']['name']) &amp;&amp; in_array($_FILES['file']['type'], $file_mimes)) {\n\u00a0\u00a0\u00a0\u00a0\u00a0\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0$arr_file = explode('.', $_FILES['file']['name']);\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0$extension = end($arr_file);\n\u00a0\u00a0\u00a0\u00a0\u00a0\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if('csv' == $extension) {\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0$reader = new PhpOfficePhpSpreadsheetReaderCsv();\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0} else {\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0$reader = new PhpOfficePhpSpreadsheetReaderXlsx();\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}\n\u00a0\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0$spreadsheet = $reader-&gt;load($_FILES['file']['tmp_name']);\n\u00a0\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0$sheetData = $spreadsheet-&gt;getActiveSheet()-&gt;toArray();\n\u00a0\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if (!empty($sheetData)) {\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0for ($i=1; $i&lt;count($sheetData); $i++) {\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0$name = $sheetData[$i][1];\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0$email = $sheetData[$i][2];\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0$db-&gt;query(\"INSERT INTO USERS(name, email) VALUES('$name', '$email')\");\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}\n\u00a0\u00a0\u00a0\u00a0}\n}\n?&gt;<\/code><\/pre>\n<p>\u0423 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u043e\u043c\u0443 \u0432\u0438\u0449\u0435 \u043a\u043e\u0434\u0456 \u044f \u0437\u2019\u044f\u0441\u043e\u0432\u0443\u044e \u0442\u0438\u043f \u0444\u0430\u0439\u043b\u0443 \u0442\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u0442\u043e\u0433\u043e, \u0449\u043e \u044f \u0447\u0438\u0442\u0430\u044e \u0444\u0430\u0439\u043b, \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0447\u0438 \u0444\u0443\u043d\u043a\u0446\u0456\u0457 \u0431\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0438. \u0414\u0435\u0442\u0430\u043b\u044c\u043d\u0456\u0448\u0435 \u043f\u0440\u043e \u0446\u0435 \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u0438 \u0432 \u043e\u0444\u0456\u0446\u0456\u0439\u043d\u0456\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0456\u0457 <a href=\"https:\/\/phpspreadsheet.readthedocs.io\/en\/latest\/topics\/reading-and-writing-to-file\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">\u0442\u0443\u0442<\/a>.<\/p>\n<p>\u0421\u043f\u043e\u0434\u0456\u0432\u0430\u044e\u0441\u044f, \u0432\u0438 \u0440\u043e\u0437\u0443\u043c\u0456\u0454\u0442\u0435, \u044f\u043a \u0447\u0438\u0442\u0430\u0442\u0438 \u0444\u0430\u0439\u043b\u0438 CSV \u0442\u0430 Excel \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e PhpSpreadsheet. \u042f \u0445\u043e\u0442\u0456\u0432 \u0431\u0438 \u043f\u043e\u0447\u0443\u0442\u0438 \u0432\u0430\u0448\u0456 \u0434\u0443\u043c\u043a\u0438 \u0442\u0430 \u043f\u0440\u043e\u043f\u043e\u0437\u0438\u0446\u0456\u0457 \u0443 \u0440\u043e\u0437\u0434\u0456\u043b\u0456 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u0456\u0432 \u043d\u0438\u0436\u0447\u0435.<\/p>\n<h4>\u041f\u043e\u0432\u2019\u044f\u0437\u0430\u043d\u0456 \u0441\u0442\u0430\u0442\u0442\u0456<\/h4>\n<ul>\n<li><a href=\"https:\/\/themewp.inform.click\/uk\/iak-eksportuvaty-dani-bazy-danykh-mysql-u-excel-za-dopomohoiu-php\/\" title=\"\u042f\u043a \u0435\u043a\u0441\u043f\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438 \u0434\u0430\u043d\u0456 \u0431\u0430\u0437\u0438 \u0434\u0430\u043d\u0438\u0445 MySQL \u0443 Excel \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e PHP\">\u042f\u043a \u0435\u043a\u0441\u043f\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438 \u0434\u0430\u043d\u0456 \u0431\u0430\u0437\u0438 \u0434\u0430\u043d\u0438\u0445 MySQL \u0443 Excel \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e PHP<\/a><\/li>\n<li><a href=\"https:\/\/themewp.inform.click\/uk\/zavantazhte-zobrazhennja-za-dopomogoju-bulletproof-library-u-php\/\" title=\"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0442\u0435 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u043a\u0443\u043b\u0435\u043d\u0435\u043f\u0440\u043e\u0431\u0438\u0432\u043d\u043e\u0457 \u0431\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0438 \u0432 PHP\">\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0442\u0435 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u043a\u0443\u043b\u0435\u043d\u0435\u043f\u0440\u043e\u0431\u0438\u0432\u043d\u043e\u0457 \u0431\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0438 \u0432 PHP<\/a><\/li>\n<li><a href=\"https:\/\/themewp.inform.click\/uk\/jak-dozvoliti-pidtrimku-svg-v-wordpress\/\" title=\"\u042f\u043a \u0434\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u0438 \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u043a\u0443 SVG \u0432 WordPress\">\u042f\u043a \u0434\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u0438 \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u043a\u0443 SVG \u0432 WordPress<\/a><\/li>\n<\/ul>\n<p><div id=\"PostUnique_PostSource\" style=\"padding-top: 50px\">\u0414\u0436\u0435\u0440\u0435\u043b\u043e \u0437\u0430\u043f\u0438\u0441\u0443: artisansweb.net<\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0423 \u0446\u0456\u0439 \u0441\u0442\u0430\u0442\u0442\u0456 \u043c\u0438 \u0432\u0438\u0432\u0447\u0430\u0454\u043c\u043e, \u044f\u043a \u0447\u0438\u0442\u0430\u0442\u0438 \u0444\u0430\u0439\u043b CSV \u0442\u0430 Excel \u0443 PHP? \u0414\u043b\u044f \u0447\u0438\u0442\u0430\u043d\u043d\u044f \u0446\u0438\u0445 \u0444\u0430\u0439\u043b\u0456\u0432 \u043c\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0454\u043c\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0431\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0443 PhpSpreadsheet, \u044f\u043a\u0430 \u0434\u043e\u0437\u0432\u043e\u043b\u044f\u0454 \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u0443\u0432\u0430\u0442\u0438<\/p>\n","protected":false},"author":1,"featured_media":21909,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_wp_rev_ctl_limit":""},"categories":[153],"tags":[851],"class_list":["post-28341","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-153","tag-affiai-uk"],"_links":{"self":[{"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/posts\/28341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/comments?post=28341"}],"version-history":[{"count":1,"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/posts\/28341\/revisions"}],"predecessor-version":[{"id":513966,"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/posts\/28341\/revisions\/513966"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/media\/21909"}],"wp:attachment":[{"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/media?parent=28341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/categories?post=28341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/tags?post=28341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}