sizeof - ¹è¿ÀÇ Å©±â¸¦ ±¸ÇÕ´Ï´Ù |
|
|
 |
14³â Àü |
sizeof(¹è¿¸í)
¹è¿¿¡ ¸î°³ÀÇ ¿ä¼Ò°¡ ÀÖ´ÂÁö¸¦ ¸®ÅÏÇÕ´Ï´Ù.
<?
$a = array("one","two","three","four");
$b = sizeof($a);
echo "$a ´Â $b °³ÀÇ ¿ä¼Ò°¡ ÀÖ½À´Ï´Ù.";
?>
=> $a ´Â 4 °³ÀÇ ¿ä¼Ò°¡ ÀÖ½À´Ï´Ù.
countµµ sizeof¿Í µ¿ÀÏÇÑ ¹æ¹ýÀ¸·Î »ç¿ë, µ¿ÀÏÇÑ °á°ú¸¦ µ¹·ÁÁÜ |
|
̵̧ : 332 |
̵̧
¸ñ·Ï
|
|