List styles: phpdocxBaseTemplate.docx

SAMPLE CODE:

$myList = array('item 1',
'item 2',
array('subitem 2_1',
'subitem 2_2'),
'item 3',
array('subitem 3_1',
'subitem 3_2',
array('sub_subitem 3_2_1',
'sub_subitem 3_2_1')),
'item 4');
addList($myList, 1))

SAMPLE RESULT:

  • item 1
  • item 2
  • subitem 2_1
  • subitem 2_2
  • item 3
  • subitem 3_1
  • subitem 3_2
  • sub_subitem 3_2_1
  • sub_subitem 3_2_1
  • item 4

SAMPLE CODE:

$myList = array('item 1',
'item 2',
array('subitem 2_1',
'subitem 2_2'),
'item 3',
array('subitem 3_1',
'subitem 3_2',
array('sub_subitem 3_2_1',
'sub_subitem 3_2_1')),
'item 4');
addList($myList, 2))

SAMPLE RESULT:

  1. item 1
  2. item 2
  3. subitem 2_1
  4. subitem 2_2
  5. item 3
  6. subitem 3_1
  7. subitem 3_2
  8. sub_subitem 3_2_1
  9. sub_subitem 3_2_1
  10. item 4

SAMPLE CODE:

$myList = array('item 1',
'item 2',
array('subitem 2_1',
'subitem 2_2'),
'item 3',
array('subitem 3_1',
'subitem 3_2',
array('sub_subitem 3_2_1',
'sub_subitem 3_2_1')),
'item 4');
addList($myList, 3))

SAMPLE RESULT:

1)item 1

2)item 2

a)subitem 2_1

b)subitem 2_2

3)item 3

a)subitem 3_1

b)subitem 3_2

i)sub_subitem 3_2_1

ii)sub_subitem 3_2_1

4)item 4

SAMPLE CODE:

$myList = array('item 1',
'item 2',
array('subitem 2_1',
'subitem 2_2'),
'item 3',
array('subitem 3_1',
'subitem 3_2',
array('sub_subitem 3_2_1',
'sub_subitem 3_2_1')),
'item 4');
addList($myList, 4))

SAMPLE RESULT:

  1. item 1
  2. item 2
  3. subitem 2_1
  4. subitem 2_2
  5. item 3
  6. subitem 3_1
  7. subitem 3_2
  8. sub_subitem 3_2_1
  9. sub_subitem 3_2_1
  10. item 4

SAMPLE CODE:

$myList = array('item 1',
'item 2',
array('subitem 2_1',
'subitem 2_2'),
'item 3',
array('subitem 3_1',
'subitem 3_2',
array('sub_subitem 3_2_1',
'sub_subitem 3_2_1')),
'item 4');
addList($myList, 5))

SAMPLE RESULT:

item 1

item 2

subitem 2_1

subitem 2_2

item 3

subitem 3_1

subitem 3_2

  • sub_subitem 3_2_1
  • sub_subitem 3_2_1

item 4

SAMPLE CODE:

$myList = array('item 1',
'item 2',
array('subitem 2_1',
'subitem 2_2'),
'item 3',
array('subitem 3_1',
'subitem 3_2',
array('sub_subitem 3_2_1',
'sub_subitem 3_2_1')),
'item 4');
addList($myList, 6))

SAMPLE RESULT:

Article I.item 1

Article II.item 2

Section 2.01subitem 2_1

Section 2.02subitem 2_2

Article III.item 3

Section 3.01subitem 3_1

Section 3.02subitem 3_2

(a)sub_subitem 3_2_1

(b)sub_subitem 3_2_1

Article IV.item 4

SAMPLE CODE:

$myList = array('item 1',
'item 2',
array('subitem 2_1',
'subitem 2_2'),
'item 3',
array('subitem 3_1',
'subitem 3_2',
array('sub_subitem 3_2_1',
'sub_subitem 3_2_1')),
'item 4');
addList($myList, 7))

SAMPLE RESULT:

1item 1

2item 2

2.1subitem 2_1

2.2subitem 2_2

3item 3

3.1subitem 3_1

3.2subitem 3_2

3.2.1sub_subitem 3_2_1

3.2.2sub_subitem 3_2_1

4item 4

SAMPLE CODE:

$myList = array('item 1',
'item 2',
array('subitem 2_1',
'subitem 2_2'),
'item 3',
array('subitem 3_1',
'subitem 3_2',
array('sub_subitem 3_2_1',
'sub_subitem 3_2_1')),
'item 4');
addList($myList, 17578827))

SAMPLE RESULT:

  • item 1
  • item 2
  • subitem 2_1
  • subitem 2_2
  • item 3
  • subitem 3_1
  • subitem 3_2
  • sub_subitem 3_2_1
  • sub_subitem 3_2_1
  • item 4

SAMPLE CODE:

$myList = array('item 1',
'item 2',
array('subitem 2_1',
'subitem 2_2'),
'item 3',
array('subitem 3_1',
'subitem 3_2',
array('sub_subitem 3_2_1',
'sub_subitem 3_2_1')),
'item 4');
addList($myList, 17578828))

SAMPLE RESULT:

  1. item 1
  2. item 2
  3. subitem 2_1
  4. subitem 2_2
  5. item 3
  6. subitem 3_1
  7. subitem 3_2
  8. sub_subitem 3_2_1
  9. sub_subitem 3_2_1
  10. item 4

Paragraph and Table styles: phpdocxBaseTemplate.docx

NAME: / Normal
Type: / paragraph
ID: / Normal
Default: / true
Custom: / false

SAMPLE CODE:

addText('This is some sample paragraph test', array('pStyle' => 'Normal'))

SAMPLE RESULT:

This is some sample paragraph test

NAME: / Heading 1 PHPDOCX
Type: / paragraph
ID: / Heading1PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addText('This is some sample paragraph test', array('pStyle' => 'Heading1PHPDOCX'))

SAMPLE RESULT:

This is some sample paragraph test

NAME: / Heading 2 PHPDOCX
Type: / paragraph
ID: / Heading2PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addText('This is some sample paragraph test', array('pStyle' => 'Heading2PHPDOCX'))

SAMPLE RESULT:

This is some sample paragraph test

NAME: / Heading 3 PHPDOCX
Type: / paragraph
ID: / Heading3PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addText('This is some sample paragraph test', array('pStyle' => 'Heading3PHPDOCX'))

SAMPLE RESULT:

This is some sample paragraph test

NAME: / Heading 4 PHPDOCX
Type: / paragraph
ID: / Heading4PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addText('This is some sample paragraph test', array('pStyle' => 'Heading4PHPDOCX'))

SAMPLE RESULT:

This is some sample paragraph test

NAME: / Heading 5 PHPDOCX
Type: / paragraph
ID: / Heading5PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addText('This is some sample paragraph test', array('pStyle' => 'Heading5PHPDOCX'))

SAMPLE RESULT:

This is some sample paragraph test

NAME: / Heading 6 PHPDOCX
Type: / paragraph
ID: / Heading6PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addText('This is some sample paragraph test', array('pStyle' => 'Heading6PHPDOCX'))

SAMPLE RESULT:

This is some sample paragraph test

NAME: / Heading 7 PHPDOCX
Type: / paragraph
ID: / Heading7PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addText('This is some sample paragraph test', array('pStyle' => 'Heading7PHPDOCX'))

SAMPLE RESULT:

This is some sample paragraph test

NAME: / Heading 8 PHPDOCX
Type: / paragraph
ID: / Heading8PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addText('This is some sample paragraph test', array('pStyle' => 'Heading8PHPDOCX'))

SAMPLE RESULT:

This is some sample paragraph test

NAME: / Heading 9 PHPDOCX
Type: / paragraph
ID: / Heading9PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addText('This is some sample paragraph test', array('pStyle' => 'Heading9PHPDOCX'))

SAMPLE RESULT:

This is some sample paragraph test

NAME: / annotation text PHPDOCX
Type: / paragraph
ID: / CommentTextPHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addText('This is some sample paragraph test', array('pStyle' => 'CommentTextPHPDOCX'))

SAMPLE RESULT:

This is some sample paragraph test

NAME: / annotation subject PHPDOCX
Type: / paragraph
ID: / CommentSubjectPHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addText('This is some sample paragraph test', array('pStyle' => 'CommentSubjectPHPDOCX'))

SAMPLE RESULT:

This is some sample paragraph test

NAME: / Balloon Text PHPDOCX
Type: / paragraph
ID: / BalloonTextPHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addText('This is some sample paragraph test', array('pStyle' => 'BalloonTextPHPDOCX'))

SAMPLE RESULT:

This is some sample paragraph test

NAME: / footnote Text PHPDOCX
Type: / paragraph
ID: / footnoteTextPHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addText('This is some sample paragraph test', array('pStyle' => 'footnoteTextPHPDOCX'))

SAMPLE RESULT:

This is some sample paragraph test

NAME: / endnote Text PHPDOCX
Type: / paragraph
ID: / endnoteTextPHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addText('This is some sample paragraph test', array('pStyle' => 'endnoteTextPHPDOCX'))

SAMPLE RESULT:

This is some sample paragraph test

NAME: / Title PHPDOCX
Type: / paragraph
ID: / TitlePHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addText('This is some sample paragraph test', array('pStyle' => 'TitlePHPDOCX'))

SAMPLE RESULT:

This is some sample paragraph test

NAME: / Subtitle PHPDOCX
Type: / paragraph
ID: / SubtitlePHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addText('This is some sample paragraph test', array('pStyle' => 'SubtitlePHPDOCX'))

SAMPLE RESULT:

This is some sample paragraph test

NAME: / Quote PHPDOCX
Type: / paragraph
ID: / QuotePHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addText('This is some sample paragraph test', array('pStyle' => 'QuotePHPDOCX'))

SAMPLE RESULT:

This is some sample paragraph test

NAME: / Intense Quote PHPDOCX
Type: / paragraph
ID: / IntenseQuotePHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addText('This is some sample paragraph test', array('pStyle' => 'IntenseQuotePHPDOCX'))

SAMPLE RESULT:

This is some sample paragraph test

NAME: / List Paragraph PHPDOCX
Type: / paragraph
ID: / ListParagraphPHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addText('This is some sample paragraph test', array('pStyle' => 'ListParagraphPHPDOCX'))

SAMPLE RESULT:

This is some sample paragraph test

NAME: / No Spacing PHPDOCX
Type: / paragraph
ID: / NoSpacingPHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addText('This is some sample paragraph test', array('pStyle' => 'NoSpacingPHPDOCX'))

SAMPLE RESULT:

This is some sample paragraph test

NAME: / Normal Table PHPDOCX
Type: / table
ID: / NormalTablePHPDOCX
Default: / true
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'NormalTablePHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Plain Table PHPDOCX
Type: / table
ID: / PlainTablePHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'PlainTablePHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Table Grid PHPDOCX
Type: / table
ID: / TableGridPHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'TableGridPHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Light Shading PHPDOCX
Type: / table
ID: / LightShadingPHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'LightShadingPHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Light Shading Accent 1 PHPDOCX
Type: / table
ID: / LightShadingAccent1PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'LightShadingAccent1PHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Light Shading Accent 2 PHPDOCX
Type: / table
ID: / LightShadingAccent2PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'LightShadingAccent2PHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Light Shading Accent 3 PHPDOCX
Type: / table
ID: / LightShadingAccent3PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'LightShadingAccent3PHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Light Shading Accent 4 PHPDOCX
Type: / table
ID: / LightShadingAccent4PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'LightShadingAccent4PHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Light Shading Accent 5 PHPDOCX
Type: / table
ID: / LightShadingAccent5PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'LightShadingAccent5PHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Light List PHPDOCX
Type: / table
ID: / LightListPHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'LightListPHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Light List Accent 1 PHPDOCX
Type: / table
ID: / LightListAccent1PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'LightListAccent1PHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Light List Accent 2 PHPDOCX
Type: / table
ID: / LightListAccent2PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'LightListAccent2PHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Light List Accent 3 PHPDOCX
Type: / table
ID: / LightListAccent3PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'LightListAccent3PHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Light List Accent 4 PHPDOCX
Type: / table
ID: / LightListAccent4PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'LightListAccent4PHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Light List Accent 5 PHPDOCX
Type: / table
ID: / LightListAccent5PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'LightListAccent5PHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Light List Accent 6 PHPDOCX
Type: / table
ID: / LightListAccent6PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'LightListAccent6PHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Light Grid PHPDOCX
Type: / table
ID: / LightGridPHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'LightGridPHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Light Grid 1 PHPDOCX
Type: / table
ID: / LightGrid1PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'LightGrid1PHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Light Grid 2 PHPDOCX
Type: / table
ID: / LightGrid2PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'LightGrid2PHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Light Grid 3 PHPDOCX
Type: / table
ID: / LightGrid3PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'LightGrid3PHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Light Grid 4 PHPDOCX
Type: / table
ID: / LightGrid4PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'LightGrid4PHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Light Grid 5 PHPDOCX
Type: / table
ID: / LightGrid5PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'LightGrid5PHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Light Grid 6 PHPDOCX
Type: / table
ID: / LightGrid6PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'LightGrid6PHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Medium Shading 1 PHPDOCX
Type: / table
ID: / MediumShading1PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'MediumShading1PHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT:

Title A / Title B / Title C
First row A / First row B / First row C
Second row A / Second row B / Second row C
NAME: / Medium Shading 1 Accent 1 PHPDOCX
Type: / table
ID: / MediumShading1-accent1PHPDOCX
Default: / false
Custom: / false

SAMPLE CODE:

addTable(array(array('Title A','Title B','Title C'),array('First row A','First row B','First row C'),array('Second row A','Second row B','Second row C')), array('tableStyle'=> 'MediumShading1-accent1PHPDOCX'), 'columnWidths' => array(1800, 1800, 1800))

SAMPLE RESULT: