"딕셔너리 리스트"의 두 판 사이의 차이

잔글 (Jmnote님이 Dictionary list 문서를 딕셔너리 리스트 문서로 이동했습니다)
1번째 줄: 1번째 줄:
[[분류: 딕셔너리 리스트]]
[[분류: 딕셔너리 리스트]]
;dictionary list
;dictionary list
;딕셔너리 리스트
;list of dictionaries
;list of dictionaries
==JavaScript==
==JavaScript==

2020년 7월 11일 (토) 19:02 판

dictionary list
딕셔너리 리스트
list of dictionaries

1 JavaScript

var members = [
	{id: 102, name: "Ashley Allen", address: "Seoul"},
	{id: 202, name: "Peter Parker", address: "New York"},
	{id: 104, name: "John Smith", address: "Tokyo"},
];
console.log( members );

2 PHP

$members = [
	['id'=>102, 'name'=>'Ashley Allen', 'address'=>'Seoul'],
	['id'=>202, 'name'=>'Peter Parker', 'address'=>'New York'],
	['id'=>104, 'name'=>'John Smith', 'address'=>'Tokyo'],
];
print_r( $members );

3 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}