How to replace position string in php when using array?
<p>I have a string php</p>

<pre><code>arr={"one", "one", "one", "one", "one", "one", "one", "one", "one"}
</code></pre>

<p>I want replace "one" to "1", but i want only replace a some position at <code>0 2 4 6 8</code>, and at <code>1 3 5 7 9</code> is not change</p>

<p>result exactly: <code>arr={"1", "one", "1", "one", "1", "one", "1", "one", "1"}</code></p>

<p>If i using str_replace in php is result is replace all postion, I want this work ideas ?</p>
