Custom Bullets with PHPDocX

  • Jun 03, 2011

This information is outdated, please, refer to the addList documentation for up to date info.
Do you need custom bullets?
In PHPDocX 2.3 we add support for spot, square and empty spot bullets in all kind of lists.
This is how it works:

require_once '../../classes/';

$docx = new CreateDocx();

$valuesList = array(
'Line 1',
'Line 2',
'Line 3',
'Line 4',
'Line 5'

$paramsList = array(
'val' => 1,
'bullets' => array(3)

$docx->addList($valuesList, $paramsList);