This simplify code, increase readability and improve the function signature for API users.
		
			
				
	
	
		
			36 lines
		
	
	
		
			411 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			411 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
return [
 | 
						|
    // RGBA (hex)
 | 
						|
    [
 | 
						|
        'CC',
 | 
						|
        'FFAABBCC',
 | 
						|
    ],
 | 
						|
    // RGBA (decimal)
 | 
						|
    [
 | 
						|
        204,
 | 
						|
        'FFAABBCC',
 | 
						|
        false,
 | 
						|
    ],
 | 
						|
    // RGB (hex)
 | 
						|
    [
 | 
						|
        'CC',
 | 
						|
        'AABBCC',
 | 
						|
    ],
 | 
						|
    // RGB (decimal)
 | 
						|
    [
 | 
						|
        204,
 | 
						|
        'AABBCC',
 | 
						|
        false,
 | 
						|
    ],
 | 
						|
    [
 | 
						|
        '00',
 | 
						|
        'FFFF00',
 | 
						|
    ],
 | 
						|
    [
 | 
						|
        0,
 | 
						|
        'FFFF00',
 | 
						|
        false,
 | 
						|
    ],
 | 
						|
];
 |