Skip to main content

Featured

Dhadi Game - An Indian War game

Hi Friends, Today i will introduce an indian traditional board game to android user I am very interested in playing dhadi game with my friends. Now that interest  becomes as an android game Here these are the playing instructions to the dhadi game Dhadi is a traditional indian game with two players.It runs with mind power between 2 players.You can play against your friends Features: Auto Move Suggestions Interesting Graphic View to game Time taken by two players will be shown individually Total movements shows Intresting background sounds and music music and sound on/off feature No permissions are needed to this app. Download the best Dhadi for Android now! https://play.google.com/store/apps/details?id=in.mjtech.daddy

Php RGB formate to Hex formate

If you have input as

RGB formate:rgb(xx, xx ,xx)

output formate:#xxxxxx

just use

below php method
function rgb2hex($rgb){
$str=substr($rgb,4,-1);
$colors=explode(", ",$str);
$R=$colors[0];
$G=$colors[1];
$B=$colors[2];
$R = dechex($R);
if (strlen($R)<2)
$R = '0'.$R;

$G = dechex($G);
if (strlen($G)<2)
$G = '0'.$G;

$B = dechex($B);
if (strlen($B)<2)
$B = '0'.$B;

return '#' . $R . $G . $B;
}

This method will works as you want...

Thank you keep visiting..

Comments

Popular Posts