Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- DOM
- oracle
- DTO
- MySQL
- 배열
- ES6
- OOP
- 객체지향
- php
- formula
- 현대이지웰java풀스택개발자아카데미6월
- explode()
- SQL
- JavaScript
- Java
- 노션
- 함수
- 오류
- error
- 멀티캠퍼스it부트캠프
- 부트캠프후기
- myshortcut
- dao
- jQuery
- react
- JDBC
- node.js
- 정규식
- strpos()
- Excel
Archives
- Today
- Total
목록stdClassObject (1)
코딩짜는 일상
[PHP] 다중배열에 json_encode(), json_decode()하기 - stdClass Object 값 불러오기
똑같은 다중배열이지만 Array는 array[0][1]로 출력하고 stdClass Object는 array[0]->1로 출력합니다. 심지어 stdClass Object가 3단 배열이면, // 배열을 아래와 같다고 가정할 때 Array ( [A] => stdClass Object ( [a] => stdClass Object ( [aa] => value ...etc $_array = $array[A] -> a; $_array[aa] -> value; 까지 가야 해서 조금 길어집니다. 어쩌다 이런 일이 생겼는지 실험을 좀 해봤습니다. 상수를 인덱스로 쓰는 배열의 json_encode, json_decode 먼저 배열을 만듭니다. $arr = array( array(), array(), array() ); $a..
IT/PHP
2022. 4. 15. 17:10