Created
October 12, 2013 04:26
-
-
Save happydeveloper/6945824 to your computer and use it in GitHub Desktop.
다중배열의 선언과 접근
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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