"$urn", 'trace' => 1); $result = $obj->call($method[$type], $params = array("String"=>"$string"), $options); //var_dump($result); if ($result == false || !is_array($result)) { die("該当するデータがありませんでした"); } foreach ($result as $val) { echo $val->zipcode . " - "; $pub = array('prefnamek','citynamek','townnamek'); foreach ($pub as $set) { $out = mb_convert_encoding($val->$set, "SJIS", mb_detect_encoding($val->$set)); echo $out; } echo "
"; } ?>
ソース