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
- strpos()
- SQL
- dao
- oracle
- 함수
- 멀티캠퍼스it부트캠프
- 배열
- 객체지향
- ES6
- JavaScript
- OOP
- node.js
- 부트캠프후기
- 정규식
- 노션
- jQuery
- myshortcut
- JDBC
- MySQL
- DTO
- formula
- Java
- error
- explode()
- react
- 오류
- DOM
- 현대이지웰java풀스택개발자아카데미6월
- php
- Excel
Archives
- Today
- Total
목록fetch_array (1)
코딩짜는 일상
[PHP] mysql_fetch_array와 mysql_fetch_assoc 차이 - print_r 출력 차이
mysql_fetch_array와 mysql_fetch_assoc를 보면 둘은 쓰는 방식도 똑같은데 왜 함수가 2가지일까, 둘의 차이가 대체 뭘까 고민을 했습니다. print_r을 써보면 확실하게 차이를 알 수 있다길래 해봤습니다. 출력할 테이블 idx name age 1 emily 20 3 nick 35 5 json 14 SELECT * FROM member oder by idx asc; mysql_fetch_array (PHP 5 이전) (= mysqli_fetch_array 또는 fetch_array ) Array ( [0] => 1 [idx] => 1 [1] => emily [name] => emily [2] => 20 [age] => 20 ) mysql_fetch_assoc (PHP 5 이전) ..
IT/PHP
2022. 5. 6. 16:24