This PHP RGB brightness change function works partially:

It skips one zero “0” at the end: it should be “00”. How to solve this?
$color = "#a7a709"; // constant $color1 = brightness($color,+25); // brighter, echoes
How to fix it? Really appreciate!
Function brightness ();
#
source share