CURL is not used for pasing data. You'll have to resort to some library for that. For your case, I recommend using SimpleXML Example: $xml = simplexml_load_string($query); var_dump($xml) You can then access the various properties using standard array indexes: echo $xml'Message'; // Yields "Access Denied.
CURL is not used for pasing data. You'll have to resort to some library for that. For your case, I recommend using SimpleXML.
Example: $xml = simplexml_load_string($query); var_dump($xml); You can then access the various properties using standard array indexes: echo $xml'Message'; // Yields "Access Denied.
But how to use this library for my code. – rajzana Nov 5 at 18:55 @rajzana Just replace your echo $query with my code and you'll see. – alexn Nov 5 at 18:56.
To convert the XML into an array, as alexn already suggested, you can make use of simplexml_load_string and cast it's return value to an array: $array = (array) simplexml_load_string($query); print_r($array); That gives you: Array ( Code => AccessDenied Message => Access Denied RequestId => B4DE627B9936548B HostId => LyB4mVbYLYF/a26Wn04sSuMlTwQjLozl11O9Ql2YbMwHgenXRUCd7WAn5QPRa6nj ) Which might be exactly what you're looking for.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.