Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Identicon
Generator
BaseGenerator
convertHexaToBoolean
Identicon\Generator\BaseGenerator::convertHexaToBoolean PHP Method
BaseGenerator Class Documentation
Show file
Open project: yzalis/identicon
convertHexaToBoolean()
private
method
Convert an hexadecimal number into a boolean.
private
convertHexaToBoolean
(
string
$hexa
) :
boolean
$hexa
string
return
boolean
private function convertHexaToBoolean($hexa) { return (bool) intval(round(hexdec($hexa) / 10)); }
BaseGenerator
convertColor
convertHashToArrayOfBoolean
convertHexaToBoolean
getArrayOfSquare
getBackgroundColor
getColor
getHash
getPixelRatio
getSize
setBackgroundColor
setColor
setSize
setString