PHP code example of zhouyu / tree

1. Go to this page and download the library: Download zhouyu/tree library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

zhouyu / tree example snippets


$array = [
 
];

Tree::getArray($array) 

Tree::getTree($array) 

Tree::getChildsId($array,$pid)

Tree::getChilds($array,$pid)