strtok - char array versus char pointerconst char * actually also results in a segfault if attempted to be used with strtok, but at least it gives a compilation warning. But noted about the modification being the issue.

Is there a “right” way to use php?@Billy ONeal - Yes, and I think that's actually one of the best arguments for the use of a framework, though I still think it's worthwhile for PHP developers to be able to code cleanly enough with PHP outside a framework.