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
                            
                        
                          
                          - 현대이지웰java풀스택개발자아카데미6월
- php
- DOM
- 부트캠프후기
- jQuery
- strpos()
- 오류
- MySQL
- dao
- oracle
- 노션
- 객체지향
- DTO
- 멀티캠퍼스it부트캠프
- react
- OOP
- SQL
- JDBC
- 정규식
- ES6
- explode()
- Excel
- 배열
- 함수
- node.js
- Java
- formula
- myshortcut
- JavaScript
- error
                            Archives
                            
                        
                          
                          - Today
- Total
목록array (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
      
    