I have a multidimensional array with values as such:
I want to take every instance of *catchword* and move it to the end of each string. For instance, the 1st result would reposition as "sample sample *catchword*".Code:array(4) { [0]=> array(7) { [0]=> string(xx) "sample *catchword* sample" [1]=> string(xx) "test *catchword*" [2]=> string(xx) "text here catchword *catchword* text here" [3]=> string(xx) "just regular text" [4]=> string(xx) "*catchword* and text" [5]=> string(xx) "" [6]=> string(xx) "more *catchword* text" [1]=> array(7) { [0]=> string(xx) "sample *catchword* sample" [1]=> string(xx) "test *catchword*" [2]=> string(xx) "text here catchword *catchword* text here" [3]=> string(xx) "just regular text" [4]=> string(xx) "*catchword* and text" [5]=> string(xx) "" [6]=> string(xx) "more *catchword* text" [2]=> array(7) { [0]=> string(xx) "sample *catchword* sample" [1]=> string(xx) "test *catchword*" [2]=> string(xx) "text here catchword *catchword* text here" [3]=> string(xx) "just regular text" [4]=> string(xx) "*catchword* and text" [5]=> string(xx) "" [6]=> string(xx) "more *catchword* text" [3]=> array(7) { [0]=> string(xx) "sample *catchword* sample" [1]=> string(xx) "test *catchword*" [2]=> string(xx) "text here catchword *catchword* text here" [3]=> string(xx) "just regular text" [4]=> string(xx) "*catchword* and text" [5]=> string(xx) "" [6]=> string(xx) "more *catchword* text"
I don't know where to start looking.






Bookmarks