Jump to content

[SOLVED] PULLING MY HAIR OUT!!!


fizix

Recommended Posts

If you're trying to match a string that is static, like "%1" it is more efficient to use a string matching function than regex (I'll save you the explanation unless you're curious) so the following code would (theoretically) accomplish the task in less time.

[code]
<?php
if (strpos($String, '%1') !== false){
  // Match
}
?>
[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.