-
-
Save theStrangeAdventurer/463ac2951f464fbbc06cffd1f3626ed9 to your computer and use it in GitHub Desktop.
new_developers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('display_errors', 1); | |
error_reporting(E_ALL); | |
set_time_limit(0); | |
define('XML_DIR', 'xml'); | |
define('UPLOAD_DIR', 'upload_images'); | |
define('AVITO_FID', 'https://autoload.avito.ru/format/New_developments.xml'); | |
$xmlString = file_get_contents(AVITO_FID); | |
$xml = simplexml_load_string($xmlString); | |
$json = json_encode($xml, JSON_UNESCAPED_UNICODE); | |
$array = json_decode($json,TRUE); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment