Im trying to make it so it will work like this /documentedit <Name> * <Text> Will this work? $name = implode(" ", $args); $msg = implode("*", $args);
I would use this: $params=explode ("*", implode (" ", $args)); file_put_contents ($this->dir.$params[0], $params[1]); Work yourself if you want the file contents to be able to contain characters of "*".