2012-09-09 3 views

답변

2

당신은 $matches 인수를 사용한다 반환해야합니다 : 당신의 도움을

$string = "20% - some text"; 
$matches = array(); 
if (preg_match('/^([0-9]+%)/', $string, $matches)) { 
    print_r($matches); 
} 
+0

덕분에 많은 –

관련 문제