Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details
This cutover relies on some testing that is still incomplete so may be cancelled at short notice
String Replace at Intervals
Other Modules
Overview
This is a coding utility which can be used to modify output strings. For example, you can add a _br /_ or classname to every third occurrence of an element for formatting. This can be changed (dynamically, even) without touching the original generator. There is also a version of the function which can handle single-level arrays as if they were strings, except that the string to be replaced cannot span across array element boundaries. * You can replace every nth occurrence of a search string with another string. * You can start replacement at any occurrence of the search string. * You can start looking for occurrences of the search string at any position in the base string. str_replace_int($needle, $repl, $haystack, $interval, $first=1, $pos=0) arr_replace_int($needle, $repl, $arr, $interval, $first=1, $pos=0, $glue='|+|') Support thread at http://www.zen-cart.com/forum/showthread.php?t=170599
Releases
-
1.0 Not Encapsulated Release ID #337520 Dec 2010 · Compatible with 1.3.9 Release by gjh42 · 186 downloads · 15.0 KB ZIP
This is a coding utility which can be used to modify output strings. For example, you can add a _br /_ or classname to every third occurrence of an element for formatting. This can be changed (dynamically, even) without touching the original generator. There is also a version of the function which can handle single-level arrays as if they were strings, except that the string to be replaced cannot span across array element boundaries. * You can replace every nth occurrence of a search string with another string. * You can start replacement at any occurrence of the search string. * You can start looking for occurrences of the search string at any position in the base string. str_replace_int($needle, $repl, $haystack, $interval, $first=1, $pos=0) arr_replace_int($needle, $repl, $arr, $interval, $first=1, $pos=0, $glue='|+|') Support thread at http://www.zen-cart.com/forum/showthread.php?t=170599
Report Plugin
Tell staff why this plugin should be reviewed.