XML is a great format for data exchange. But JSON is used more and more for data exchanging and configuration. In my opinion JSON is a great, because it is more lightweight than XML. More and more apis work with JSON today. Recently I had to convert XML To JSON. Nothing special, just a simple XML String. In this article I’ll show you how to do this with only a few lines of code.
Extract a Single Column From a Multidimensional Array in PHP
Imagine you have an array containing information about several users and you want to extract only a certain value. See this example. Now, you want to extract only the email addresses from this multidimensional array. One way to accomplish this is by using a foreach loop: This works perfectly fine, but PHP offers a much … Read more