Inserting value into an array using key value <p>I have already fetched both key and value in array.how can I insert that value into another array in the same key position using that fetched key value.</p> <p>Here my coding </p> <pre><code>$key=array_search($s_str,$opis_split); //key value $value=a; //array value $push=array_push($value,$key); var_dump($push); </code></pre>