How can I convert these to hex or strings?
| From: | David OBrien | Date: | Wed, 21 Mar 2012 13:26:48 +0000 |
| Subject: | How can I convert these to hex or strings? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-317154@lists.php.net to get a copy of this message | ||
I'm running snmp against a huge list of printers and certain HP models
return
Model:
stdClass Object
(
[type] => 4
[value] => ☺§HP LaserJet P3010 Series
)
Serial:
stdClass Object
(
[type] => 4
[value] => ☺§VNBCC1917W
)
MacAddress:
stdClass Object
(
[type] => 4
[value] => ⌠╬F>╒'
)
I just strip the weird ones off the model and serial entries but I've been
pulling my hair out trying to convert the macaddress one to a hex string or
just a string
Can some one educate me or point me in the right direction?
David OBrien