24/7 Support: 800.608.6482

Developer Docs

indexofi

MivaScript Builtin Function, Miva Merchant 9+

Tag / Description

indexofi( search_string, target_string var, start_number )

<mvt:assign name="g.return_value" value="indexofi( search_string, target_string var, start_number )" />

Returns the position of the first occurrence of search_string within the target_string beginning at the start_number position. The search is CASE IN-SENSITIVE. If not found, the functions return 0. The offset parameter and returned string offset are 1-based. For speed, target_string is passed by reference

Parameters

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 – 2021 Miva©, Miva Merchant©, MivaPay©, MivaCon© Miva, Inc. All Rights Reserved.