-5

Hello i'm trying to search in a Array like SQL with the "Like %search%" statement Has anybody an idea? I need this.

3

1 Answer 1

0

I guess something like it can works:

function ArrayLike($search, $array)
{
  foreach ($array => $elem)
  {
    if (strstr($elem, $search) !== false)
      return (true);
  }
  return (false);
}
Sign up to request clarification or add additional context in comments.

1 Comment

Hello it helps a bit but not at all. I like to put out the whole Array Record

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.