$glossary_value) { $glossary_all_data[]=$glossary_value['id'].'__|__|'.$glossary_value['name']; } $glossary_all_data=implode('[|.|_|.|-|.|]',$glossary_all_data); //get_glossary_terms if (isset($_POST['glossary_id']) && $_POST['glossary_id']==strval(intval($_POST['glossary_id']))) { echo api_xml_http_response_encode($glossary_description); } elseif (isset($_POST['glossary_data']) && $_POST['glossary_data']=='true') { echo api_xml_http_response_encode($glossary_all_data); } else { echo ''; }