A
Anonymous
Guest
Hi,
you are right but logically its wrong for you application.
Just do one thing
take each and every word in array.
now count the array.
now use for loop and take each and every element of array and compare the word which you want to replace.
if you found which you want to replace
then
$your_array[$i] = "replacing_word";
where $i is for loop inc variable.
http://mukeshvariya.blogspot.com
you are right but logically its wrong for you application.
Just do one thing
take each and every word in array.
now count the array.
now use for loop and take each and every element of array and compare the word which you want to replace.
if you found which you want to replace
then
$your_array[$i] = "replacing_word";
where $i is for loop inc variable.
http://mukeshvariya.blogspot.com