How can I understand this data?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
toasty2
Forum Contributor
Posts: 361
Joined: Wed Aug 03, 2005 10:28 am
Location: Arkansas, USA

How can I understand this data?

Post by toasty2 »

I am querying a source-engine based game server, and I'm trying to figure out how i can work with the response data the server sends back to me.

I am doing this query: http://developer.valvesoftware.com/wiki ... s#A2S_INFO

Look at the example response, I am getting a response similar to that when I query a server. I want to separate the information in the response using explode(), but I don't know what the character between each piece of data is. It shows up as a question mark in my browser. Can any one tell me what character that is?
toasty2
Forum Contributor
Posts: 361
Joined: Wed Aug 03, 2005 10:28 am
Location: Arkansas, USA

Post by toasty2 »

Using urlencode() helped me figure this out. I just urlencode()-ed it, replaced the characters (%00) with my own delimiters, and urldecode()-ed it back again. urlencode() is often overlooked when working with stuff, I'm glad I thought of it.
Post Reply