How to search for elements of one array from another but in a sequence

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.