Check documentation for the latest version of dhtmlxSuite parseStyle DHTMLX Docs

parseStyle

Converts a string of the style attributes into an array.

Parameters

  • $style - (string) the style as a string

Return value

  • (array) the cell style as an array

Example

$cell = new SpreadSheetCell($res, "1","B1", $db_prefix);
$styleString = $cell->parseStyle("1;0;000000;ffffff;center;none;0");

See also: serializeStyle, getStyle, setStyle

Details

The $styleString in the example above will have the following value:

array (
   "bold" => 1, 
   "italic" => 0, 
   "color" => '000000',
   "bgcolor" =>'ffffff',
   "align" => 'center',
   "validator" => 'none',
   "lock" => 0
);
Back to top