public static function setDataAttributes($data)
    {
        if(is_array($data) && count($data) > 0)
        {
            $keys = array_keys($data);

            $response = '';
            foreach($keys as $key)
            {
                $response .= ' data-' . $key . '="' . $data[$key] . '"';
            }

            return $response;
        }

        return null;
    }
public static function setDataAttributes($data)
    {
        if(is_array($data) && count($data) > 0)
        {
            $keys = array_keys($data);

            $response = '';
            foreach($keys as $key)
            {
                $response .= ' data-' . $key . '="' . $data[$key] . '"';
            }

            return $response;
        }

        return null;
    }
public static function setDataAttributes ( $ data ) { if ( is_array ( $ data ) && count ( $ data ) > 0 ) { $ keys = array_keys ( $ data ) ; $ response = '' ; foreach ( $ keys as $ key ) { $ response .= ' data-' . $ key . '="' . $ data [ $ key ] . '"' ; } return $ response ; } return null ; }
Funtion to set data atrributes to html tags

@access  public
@param   array   $data
@return  string
Funtion to set data atrributes to html tags