找防水抓漏工程機會,線上超過上百筆精選防水抓漏案件,無論接案新手 專職SOHO、接案工作室、公司,都能 | ![]() | 專業鐵皮屋搭建工程,自有工廠料實在 多年專業打造堅固美觀鐵皮屋,免費到府丈量估價 |
[php] 陣列比對 |
房東:小蛙 ![]() 發表時間:2016-01-16 | [檢舉] |
//////資料比對 $haystack = array ( \'say hello\', \'hello stackoverflow\', \'hello world\', \'foo bar bas\' ); /////關鍵字 $keyword=\"hello\"; if (preg_grep (\"/$keyword/i\", $haystack)) { echo \"條件符gggg合 \"; } else { echo \"條件不符gggg合 \"; } $matches = preg_grep (\"/$keyword/i\", $haystack); print_r ($matches); ?> |
廣利不動產-新板特區指名度最高、值得您信賴的好房仲 您的托付,廣利用心為您服務 廣利不動產-板橋在地生根最實在--新板特區指名度最高、值得您信賴的好房仲 完整房訊,房屋、店面熱門精選物件,廣利不動產 優質仲介,房屋租賃、買賣資訊透明,交易真安心! |
1 樓住戶:jack![]() 發表時間:2016-01-19 | [檢舉] |
$array1 = array('html','php','js','css'); $array2 = array('php','python','html','java'); $result = array_intersect($array1, $array2); print_r($result); the result is: Array ( [0] => html [1] => php ) |