When it comes to PHP, one of the reasons I choose XML over JSON is that even in PHP 5, the crawl API is not officially supported. You can encode, and you can decode, that's all. There is no verification, there is no effective way to move the key / value pair and the all-in-one, and there is very little support for it. Don't get me wrong, you can just use the foreach loop structure, but it is really cumbersome. JSON was touted as a great data exchange format, as JavaScript easily understood the lexical structure. So when you switch from PHP to JavaScript, itβs great, but when you switch from JavaScript to PHP or PHP to PHP, JSON is not the best choice for data exchange.
user4903
source
share