<?
$word = "가나 다라 마바";
$nt = split("[[:space:]]+", $word);
$exp_count = count($nt);
echo "$word : $word <br>";
echo "$exp_count : $exp_count <br>";
// $contents -> 글 내용
$tmpcontext="";
for ($i=0; $i<$exp_count; $i++){
$tmpcontext.="<a href="javascript:wordLink('$nt[$i]');">$nt[$i]</a> ";
}
echo $tmpcontext;
echo "<br>";
/*
$tmpno_arr=$nt;
$value = reset($tmpno_arr);
while($value) {
//echo $value . "<br />";
if (trim($value)==$susrid || trim($value)==$sbname){
$rd_right_ok=true;
break;
}
$value = next($rd_right_arr);
}
*/
$contents = str_replace("apple","<a href="javascript:wordLink('apple');">apple</a>",$contents);
echo $contents;
?> |
|
|
|
|
|