PHP code example of euf / isced

1. Go to this page and download the library: Download euf/isced 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/ */

    

euf / isced example snippets




sced\IscedFieldsOfStudy;

$iscedF = new IscedFieldsOfStudy();

$list = $iscedF->getList();

try {
  $is = $iscedF->isBroad("0711");
} catch (\Throwable $th) {
  echo($th->getMessage());
}

$tree = $iscedF->getTree();

echo(json_encode($tree, JSON_PRETTY_PRINT) . "\n");