ASN1ToOid

The ASN1ToOid method converts the specified ASN.1 value to its corresponding OID.

Method Synopsis

ASN1ToOid($asn1)

Parameters

$asn1
Specifies the ASN.1 (Abstract Syntax Notation One) value to be converted to its corresponding object identifier (OID).

Description

The ASN1ToOid method converts the specified ASN.1 value ($asn1) to its corresponding OID.

Example Usage

The following example returns $oid as 'ifIndex':

$oid = $snmp->ASN1ToOid ("1.3.6.1.2.1.2.2.1.1")

Returns

Upon completion, the ASN1ToOid method returns an OID that corresponds to the specified ASN.1 value ($asn1) .

See Also