Sign in to follow this  
Followers 0
aiter

_ArraySearch does not appear to work

4 posts in this topic

I am trying to find a partial match in an array using _ArraySearch

I used this format :-

$i= _ArraySearch($aData,$find,0,1) ; not case sens, partial search

The partial search is not working even though I specified non case sensitive and  partial search as parameters

The array is 1 dimensional.

Am I doing something wrong?

 

Share this post


Link to post
Share on other sites



I omitted start and end parameters.

$i= _ArraySearch($aData,$find,0,0,0,1)

This works.

Share this post


Link to post
Share on other sites

can you give us an example array, with an example search that fails?


,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

Thanks, problem solved.

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  
Followers 0