NYCPHP Meetup

NYPHP.org

[nycphp-talk] Converting hex?

Jeff Loiselle jeff.loiselle at gmail.com
Mon Sep 4 09:46:10 EDT 2006


Anyone know of a nice efficient function to convert this?
$name = 'Tony D\x27Antonio';

I realize that putting it in double quote will do it, but I am unable
to do that. As I am doing something like this:

$data - file_get_contents($some_remote_https_url);
$pieces = explode(',', data);
print $pieces[0];

Output:
Tony D\x27Antonio

This doesn't seem to help:
print "$pieces[0]";

I'm looking for the most efficient way, as this is being used in a
REST response parser. Thanks!

---
Jeff Loiselle
Web Developer
The NewNewMedia Group
http://www.newnewmedia.com



More information about the talk mailing list