Skip to content

Instantly share code, notes, and snippets.

@happydeveloper
Created October 12, 2013 04:26
Show Gist options
  • Save happydeveloper/6945824 to your computer and use it in GitHub Desktop.
Save happydeveloper/6945824 to your computer and use it in GitHub Desktop.
다중배열의 선언과 접근
<?php
/**
* Created by JetBrains PhpStorm.
* User: kangnaru
* Date: 13. 10. 12.
* Time: 오후 1:21
* To change this template use File | Settings | File Templates.
*/
//http://php.net/manual/en/language.types.array.php
//http://opentutorials.org/course/62/235
$arr = array("somearray" => array(6 => 5, 13 => 7, 18 => 8, "a" => 'A'));
echo $arr["somearray"][6];
echo $arr["somearray"][13];
echo $arr["somearray"]["a"];
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment