I am new in PHP program stuff, and I discover a great thing called 'eregi_replace', it is helping me work with SNMP stuff.
So my scene is:
Code: Select all
$tempo_de_bateriaget= snmpget("$host", $community, ".1.3.6.1.4.1.318.1.1.1.2.2.3.0");Timeticks: (102000) 0:17:00.00
so I use the code:
Code: Select all
$tempo_de_bateria = eregi_replace("Timeticks: (102000)","",$tempo_de_bateriaget);and when I do:
Code: Select all
$tempo_de_bateria = eregi_replace("Timeticks:","",$tempo_de_bateriaget);Question:
There´s a way to show just: 17:00.00 ?