I’m wondering. Is there a better performance with this:
$value = preg_replace( array('/_{1,}/', '/-{2,}/'), array('_', '-'), $value);
than this:
$value = preg_replace('/_{1,}/', '_', $value);
$value = preg_replace('/-{2,}/', '-', $value);
This is just a very simple example.
As my test code: