Returns the fold level for some line. See set_fold_level()
// getting the fold level of line 10... echo $scintilla->get_fold_level(10);