How can I convert these to hex or strings?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux