PHP-to-OrgChart 能将 php 多维 array 生成组织结构图。
示例:
$data=array( ‘a’=>array( ‘aa’=>array( ‘aaa’=>’Mike’, ‘aab’=>’Look’, ‘aac’=>’Rum’, ), ‘bb’=>array( ‘aaa’=>‘123’, ‘aab’=>‘567’, ‘aac’=>‘890’, ‘bbdd’=>array( ‘aaa’=>‘123’, ‘aab’=>‘567’, ‘aac’=>‘890’, ), ), ), ‘b’=>array( ‘cc’=>array( ‘aaa’=>’Mike’, ‘aab’=>’Look’, ‘aac’=>’Rum’, ), ‘dd’=>array( ‘aaa’=>‘123’, ‘aab’=>‘567’, ‘aac’=>‘890’, ), ), );
echo ‘
’; PHPtoOrgChart($data); echo ‘
’;