Jump to content

[SOLVED] How do i check if a "(" char is in a string?


JJohnsenDK

Recommended Posts

Hey

 

Im trying to check if a "(" char is in a string, but i get this error:

 

Warning: preg_match() [function.preg-match]: No ending matching delimiter ')' found in C:\wamp\www\katrinelund\maincore.php on line 1218

 

What am i doing wrong?

 

 

<?php
if(preg_match("(", $str)){
    do something
}else
    do something else
}
?>

 

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.