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 |
31 |
Tags
- explode()
- php
- Excel
- error
- 멀티캠퍼스it부트캠프
- SQL
- 현대이지웰java풀스택개발자아카데미6월
- 함수
- JavaScript
- 노션
- 일부 문자열 포함여부
- 정규식
- getimagesize()
- MySQL
- 문자열 포함여부
- 오류
- implode()
- DOM
- strpos()
- ES6
- react
- node.js
- srtpos()
- 특수문자 포함여부
- myshortcut
- 이걸 그렇게 쓸 줄은 몰랐지
- formula
- 배열
- jQuery
- 부트캠프후기
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