i've come across a problem.

How do i check if an array has two,or more elements in a sequence.

For example,let's say i have an array

1,2,3,6,7,8,4,5

and i want to check if it has numbers 6,7,8 but in that sequence.

For example,if it would be

1,2,3,7,6,8,4,5

it would return false.

I know that it's pretty easy with one element,just make a for loop,but i can't figure out how to search for two or more arrays,and in the sequence i want them to be.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.