Sorry for answering my self! ;) Looks like I can use same key!
$referenceNode = [ 'type' => 'paragraph' ]; $styles = $docx->getWordStyles($referenceNode);
$contents = $docx->getWordContents($referenceNode); foreach ($contents as $key => $item) { if (empty($styles[$key]['pStyle']['val'])) { continue; } $style = $styles[$key]['pStyle']['val']; echo $style.' - '; echo $item."\n"; }