PHP 8.4.24 Released!

Voting

: min(four, zero)?
(Example: nine)

The Note You're Voting On

jrhodes at roket-enterprises dot com
17 years ago
It was suggested to use

substr_count ( implode( $haystackArray ), $needle );

instead of the function described previously, however this has one flaw.  For example this array:

array (
  0 => "mystringth",
  1 => "atislong"
);

If you are counting "that", the implode version will return 1, but the function previously described will return 0.

<< Back to user notes page

To Top