php
연관배열 + extract()
장곰부대
2018. 3. 26. 09:42
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <?php $user = array('id' => "janggom", 'name'=> '안수정', 'addr'=> '대구', 'phone' => 'xxx-xxxx'); $user[id] = 'sujeong'; $user['id'] = 'ansu'; $user["id"] = 'stal'; extract($user); echo $id, $name, $addr, $phone; ?> | cs |