我想從這個字符串正則表達式匹配成才與
"Dial [Toll Free 1800 102 8880 ext: 246] to connect to the restaurant. <a class='tooltip' title='Foodiebay has now introduced value added calling features through the website. You just need to dial this number and we ..."
在哪裏我要檢查,如果一個變量的字符串開始撥號獲得比賽開始
$a = 'Dial [Toll Free 1800 102 8880 ext: 246] to connect to the restaurant. <a class='tooltip' title='Foodiebay has now introduced value added calling features through the website. You just need to dial this number and we';
preg_match('/[^Dial]/', $a, $matches);
不會substr($ a,0,4)==如果字符串中不存在'Dial'會更快(並且字符串非常長)? – 2010-11-28 03:57:17