Jump to content
Sign in to follow this  
Hello12345

Seach an array and get array result?

Recommended Posts

Hello12345

Hello, i am kind of a newbie. But not super.

I have an array that i need to search and need to get an array back with the places where the text is found.

i tried arraysearchplus but it only return the first results and it stops.

_ArraySearchPlus ($Title2, "General","" , "",0,3)

thanks any help is greatly appreciated

Edited by Hello12345

Share this post


Link to post
Share on other sites
jefhal

Put your array into an array variable $arrayOne. Then open a For loop to go through every array element looking for a match. When you find a match, use arrayadd to add one element to another array $arrayTwo: _arrayadd($arrayTwo,$arrayOne[$i])


...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format

Share this post


Link to post
Share on other sites
Hello12345

Thank. I got it :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×