ערכתי לאחרונה בתאריך 11.01.11 בשעה 17:02 בברכה, akoka2
list($r, $g, $b) = array_map('hexdec', str_split((!strstr('#', $info['backgroundColor']))?$info['backgroundColor']: substr($info['backgroundColor'], 1,strlen($info['backgroundColor']) - 1), 2));
|
קצת הזוי לעשות את זה ככה אה?
יש דרך יותר קצרה עם פעולות על ביטים אם זיכרוני אינו מטעה אותי, אשמח אם מישהו ייכתוב אותה:}