Sample Code for PHP

require("class.CKIP.php"); $ckip = new CKIP(); $ckip->serverIP= "ip"; $ckip->serverPort= port; $ckip->username= "username"; $ckip->password= "password"; $ckip->rawText = "台新金控12月3日將召開股東臨時會進行董監改選。"; $ckip->send(); echo $ckip->returnText; $ckip->getSentence(); foreach ( $ckip->sentence as $s){ echo $s."\n"; } $ckip->getTerm(); foreach ( $ckip->term as $t){ echo $t->term.",".$t->tag."\n"; }