Skip to content

Instantly share code, notes, and snippets.

@nathggns
Created August 29, 2011 11:59
Show Gist options
  • Save nathggns/1178253 to your computer and use it in GitHub Desktop.
Save nathggns/1178253 to your computer and use it in GitHub Desktop.
Wierd Error: strpos() [function.strpos]: Empty delimiter
foreach ($split as $place => $line) {
if (strpos('}', $line)) {
$n--;
}
$prefix = str_repeat("\t", $n);
if (strpos('{', $line)) {
$n++;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment