24/7 Support: 800.608.6482

Get Started

Developer Docs

glosub

MivaScript Builtin Function, Miva Merchant 9+

Tag / Description

glosub( target_string, search, replace )

<mvt:assign name="g.return_value" value="glosub( target_string, search, replace )" />

Global substitution returns a copy of string in which all instances of string search have been replaced by string replace. (Note: to represent a backslash () in replace, use '\\').

Parameters

  • target_string

    the target string

  • search

    the sub-string that will be search ed for

  • replace

    the replacement string

Return Values

Examples

This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

Accept

Copyright © 1997 – 2019 Miva©, Miva Merchant©, MivaPay©, MivaCon© Miva, Inc. All Rights Reserved.