Check documentation for the latest version of dhtmlxSuite serializeStyle DHTMLX Docs

serializeStyle

Converts an array of the style attributes into a string.

Parameters

  • $style - (array) the style as an array

Return value

  • (string) the style as a string

Example

$style = array (
    "bold" => 1, 
    "italic" => 0, 
    "color" => '000000',
    "bgcolor" =>'ffffff',
    "align" => 'center',
    "validator" => 'none',
    "lock" => 0
);
 
$cell = new SpreadSheetCell($res, "1","B1", $db_prefix);
$cell->serializeStyle($style); // -> "1;0;000000;ffffff;center;none;0"

See also: parseStyle, getStyle, setStyle

Back to top