Á¤±Ô½Ä ƯÁ¤±¸°£ÀÇ ³»¿ë¸¸ °¡Á®¿À±â |
|
|
 |
8³â Àü |
$text = "°¡a³ª´Ù¶ó ¸¶¹Ù»ç ¾ÆÀÚÂ÷ īŸÆÄÇÏ";
preg_match_all("/a.+\s/Ui", $text, $result);
print_r($result);
¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥¡¥
$text = '°¡a³ª´Ù¶ó ¸¶¹Ù»ç ¾ÆÀÚÂ÷ īŸÆÄÇÏ';
preg_match('/a.*?\s/',$text,$match);
echo $match[0]; // a³ª´Ù¶ó |
|
̵̧ : 392 |
̵̧
¸ñ·Ï
|
|