Toggle navigation
Hot Examples
IT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Cerca
Home
LdapTools
Connection
LdapControl
berEncodeInt
LdapTools\Connection\LdapControl::berEncodeInt PHP Method
LdapControl Class Documentation
Mostra file
Open project: ldaptools/ldaptools
berEncodeInt()
public
static
method
A simple helper to BER encode an int for an ASN.1 structure for a basic LDAP control value.
public
static
berEncodeInt
(
integer
$int
) :
string
$int
integer
return
string
The BER encoded ASN.1 structure to use for the LDAP control value.
public static function berEncodeInt($int) { return sprintf("%c%c%c%c%c", 48, 3, 2, 1, $int); }
LdapControl
__construct
berEncodeInt
getCriticality
getOid
getValue
setCriticality
setOid
setValue
toArray