$foo is not an array, it is a scalar. You could use index to find 'bar' in $foo, but that doesn't sound like what you want. Perhaps you should post the rest of you code and some sample data so we can see what you are trying to do.
In reply to Re: find text in string
by GrandFather
in thread find text in string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |