12.07.2012, 11:41
RedJohn, you're most likely just counting the "{" and "}" with the explodes.
example:
ps: scripted on the quick reply box e.e
example:
PHP Code:
$open = count(explode("{", $_POST['code']));
$close = count(exokide("}", $_POST['code']));
echo '<script type="text/javascript">alert("you have '.$open.' open brackets\nAnd '.$close.' closed brackets");</script>';