PHP 8.4.24 Released!

Voting

: min(eight, two)?
(Example: nine)

The Note You're Voting On

legacyprog at routinz dot net
15 years ago
When you use the third parameter remember that the function will return the number of characters it bypassed, which will *not* be the position in your source string.  It's a simple fix to just add your third parameter value to the function result to get the position in the first string where the scan stopped, but I didn't think of it at first.

<< Back to user notes page

To Top