|
 |
14³â Àü |
explode — ¹®ÀÚ¿À» ¹®ÀÚ¿·Î ³ª´¯´Ï´Ù
¼³¸í
array explode ( string $delimiter , string $string [, int $limit ] )
delimiter ¹®ÀÚ¿À» °æ°è·Î ³ª´©¾îÁø string ÀÇ ºÎºÐ ¹®ÀÚ¿·Î ÀÌ·ç¾îÁö´Â ¹è¿À» ¹ÝȯÇÕ´Ï´Ù.
Àμö
delimiter : °æ°è ¹®ÀÚ¿.
string : ÀÔ·Â ¹®ÀÚ¿.
limit
limit ¸¦ ÁöÁ¤Çϸé, ¹ÝȯÇÏ´Â ¹è¿Àº ÃÖ´ë limit °³ÀÇ ¿ø¼Ò¸¦ °¡Áö°í, ¸¶Áö¸· ¿ø¼Ò´Â ³²Àº string ¸ðµÎ¸¦ Æ÷ÇÔÇÕ´Ï´Ù.
limit Àμö°¡ À½¼öÀ̸é, ¸¶Áö¸· -limit ¸¦ Á¦¿ÜÇÑ ¸ðµç ±¸¼º¿ä¼Ò¸¦ ¹ÝȯÇÕ´Ï´Ù.
implode()´Â °ü½ÀÀ¸·Î ÀÎÇØ ÀμöÀÇ ¼ø¼¸¦ ¹Ù²Ü ¼ö ÀÖÁö¸¸, explode()´Â ¹Ù²Ü ¼ö ¾ø½À´Ï´Ù.
¹Ýµå½Ã delimiter Àμö°¡ string Àμö ¾Õ¿¡ À§Ä¡ÇØ¾ß ÇÕ´Ï´Ù.
=============================================================================
list($wr_email2, $wr_email1) = explode("@", $email);
$ex2_filed = explode("|",$write[wr_2]);
$ext2_00 = $ex2_filed[0];
$ext2_01 = $ex2_filed[1];
$ext2_02 = $ex2_filed[2];
$ext2_03 = $ex2_filed[3];
$ext2_04 = $ex2_filed[4];
$ext2_05 = $ex2_filed[5];
$ext2_06 = $ex2_filed[6];
$ext2_07 = $ex2_filed[7];
$ext2_08 = $ex2_filed[8];
$ext2_09 = $ex2_filed[9];
=============================================================================
http://docs.php.net/manual/kr/function.explode.php [114] |
|
̵̧ : 291 |
̵̧
¸ñ·Ï
|
|