> For the complete documentation index, see [llms.txt](https://docs.pinot.apache.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pinot.apache.org/functions/array/arrayindexofstring.md).
# arrayIndexOfString
Finds the last index of the given value in the array starting at the given index.
## Signature
> arrayIndexOfString('colName', valueToFind)
## Usage Examples
These examples are based on the [Hybrid Quick Start](/start-here/quick-start.md#hybrid).
```sql
select DivTailNums,
arrayIndexOfString(DivTailNums, 'N7713A') AS index
from airlineStats
WHERE arraylength(DivTailNums) >= 2
limit 5
```
| DivTailNums | index |
| ------------- | ----- |
| N7713A,N7713A | 0 |
| N344AA,N344AA | -1 |
| N7713A,N7713A | 0 |
---
# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.
## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.
Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:
```
GET https://docs.pinot.apache.org/functions/array/arrayindexofstring.md?ask=