I have a string of delimited numerical values just like this:

```
5|2288|502|4208|55|23217|235|10|3845|19053|1885|61|324|9004| ...etc.

```

Depending on the circumstance, the string may have only 1 value, 15 values, all the way up to 100s of values, all pipe delimited.

I need to count off (and keep/echo) the first 10 values and truncate everything else after that.

I've been looking at all the PHP string functions, but have been unsuccessful in finding a method to handle this directly.