टेम्पलेट:Str find: रिवीजन सभ के बीचा में अंतर

विकिपीडिया से
Content deleted Content added
imported>Dragons flight
No edit summary
imported>Dragons flight
No edit summary
लाइन 1: लाइन 1:
{{#switch:*{{{2|}}}*
<includeonly>{{#switch:*{{{2|}}}*
|**=-1
|**=-1
|*{{str_index|{{{1|}}}|1}}*=1
|*{{str_index|{{{1|}}}|1}}*=1
लाइन 52: लाइन 52:
|*{{str_index|{{{1|}}}|50}}*=50
|*{{str_index|{{{1|}}}|50}}*=50
|-1
|-1
}}</includeonly><noinclude>
}}

<nowiki>{{str_find|</nowiki>''text''|''character''<nowiki>}}</nowiki> = Position of first appearance of ''character'' in ''text''.

Only searches first 50 characters of ''text''. Returns -1 if ''character'' not found in first 50 characters.</noinclude>

02:10, 27 फरवरी 2009 तक ले भइल बदलाव


{{str_find|text|character}} = Position of first appearance of character in text.

Only searches first 50 characters of text. Returns -1 if character not found in first 50 characters.