2011-06-29 139 views
1

我試圖做一個thig的,但我沒有得到任何人point.can請表明我的記錄.. 二維數組像下面搜索與一個二維數組

$array = Array 
([1] => Array 
    ([1] => EST_ID 
    [2] => EST_CODE 
    [3] => EST_EXT 
    [4] => EST_NAME 
    [5] => INCROP_ADDRESS1 
    [6] => INCROP_ADDRESS2 
    [7] => INCROP_CITY 
    [8] => INCROP_DIST 
    [9] => INCROP_STATE 
    [10] => INCROP_PIN 
    ) 
[2] => Array 
    ([1] => HRKNL0006923000 
    [2] => 6923 
    [4] => VAIBHAV CARPETS 
    [5] => BHUL-BHULIA CHOWK 
    [6] => BODHWA RAM COLONY 
    [7] => PANIPAT 
    [8] => PANIPAT 
    [10] =>3) 

[3] => Array 
    ([1] => HRKNL0004638000 
    [2] => 4638 
    [4] => GURU TEG BHADUR PUBLIC SCHOOL 
    [5] => MODEL TOWN 
    [6] => KARNAL 
    [7] => KARNAL 
    [8] => KARNAL 
    [10] => 132001) 
) 

我要從$陣列

+1

問的問題我不確定你的問題是什麼,Amar Ranjan Das。你能否澄清你期望的搜索結果? –

+0

請記住標記一個答案,如果你解決了你的問題。 – Drazisil

回答

0

不清楚自己需要哪一個,因爲我沒有完全理解的問題,而是這兩個功能也將有助於搜索的2或3的數組鍵array_key_exists()in_array()