json 문의 드려요

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!
json 문의 드려요

QA

json 문의 드려요

본문

(<?php echo $json['channel']['items'][0]['point_y']?>,  <-- 이렇게 해주면 안되던데요.

이부분 수정을 해주어야 ㅎ나요??



{  "channel": {    "totalCount": "1",    "link": "",    "result": "1",    "generator": "Daum Open API",    "pageCount": "1",    "lastBuildDate": "",    "item": [      {        "mountain": "",        "mainAddress": "242",        "point_wx": "400166",        "point_wy": "-11708",        "isNewAddress": "Y",        "buildingAddress": "카카오스페이스닷원",        "title": "제주특별자치도 제주시 첨단로 242",        "placeName": "Not avaliable",        "zipcode": "690140",        "newAddress": "영평동 2181",        "localName_2": "제주시",        "localName_3": "첨단로",        "localName_1": "제주특별자치도",        "lat": 33.4506803453,        "point_x": 126.5704935278,        "lng": 126.5704935278,        "zone_no": "63309",        "subAddress": "0",        "id": "N30664967",        "point_y": 33.4506803453      }    ],    "title": "Search Daum Open API",    "description": "Daum Open API search result"  }}

이 질문에 댓글 쓰기 :

답변 2

echo $json->channel->item[0]->point_y;

print_r($json);


경도 -> ing

위도 -> lat

답변을 작성하시기 전에 로그인 해주세요.
전체 124,425
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT