Responsive Ad Area

Share This Post

test

How to find the index of a value within an Array, when the Array’s values are separated by lines?

Good evening, I am having a lot of trouble with an array that has values separated by multiple lines.

The array is getting its information from a tab-delimited text file, and the purpose of this is for me to scan through the Array with a for-loop to search for specific values within the Array. When I scan for the specific values, my program will return the value, and the rest of the line it is in… as well as all other lines the value is in.

The next step is to scan for other values in said lines…. but I can’t seem to get the Index of a value, if the value in several lines down.

Is there any way to search through all of the lines in an Array for a specific value?


How to find the index of a value within an Array, when the Array’s values are separated by lines?
How to find the index of a value within an Array, when the Array’s values are separated by lines?
test
{$excerpt:n}

Share This Post

Leave a Reply

Your email address will not be Publishedd. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Skip to toolbar