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

5번째 줄: 5번째 줄:
==PHP==
==PHP==
<source lang='php'>
<source lang='php'>
$rows = [
$members = [
   ['id'=>102, 'name'=>'Alice', 'Address'=>'Seoul'],
   ['id'=>102, 'name'=>'Alice', 'Address'=>'Seoul'],
   ['id'=>202 , 'name'=>'Bob', 'Address'=>"New York"],
   ['id'=>202 , 'name'=>'Bob', 'Address'=>"New York"],

2018년 3월 4일 (일) 17:34 판

dictionary list
list of dictionaries

1 PHP

$members = [
  ['id'=>102, 'name'=>'Alice', 'Address'=>'Seoul'],
  ['id'=>202 , 'name'=>'Bob', 'Address'=>"New York"],
  ['id'=>104 , 'name'=>'Carol', 'Address'=>"Tokyo"],
];

2 같이 보기

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