Location: PHPKode > projects > CoreAsset > coreasset/lib/color_array.php
<?php
class Color_array
{
  function get_color_value()
  {
    $file                   = "css/temp.txt";
    $handle                 = fopen($file, 'r');
    $contents               = fread($handle, filesize($file));
    $colo_array             = explode(",",$contents);
    for($i=0; $i < sizeof($colo_array); $i++)
    {
     $temp_col                          = explode("=",$colo_array[$i]);
     $color_array[$temp_col[0]]         = $temp_col[1];
    }
    return ($color_array);
  }
}
$color_array = new Color_array();  // *********** Creating the Object ************
?>
Return current item: CoreAsset