Is it possible to use PHP to create, edit and delete crontab jobs?
I know how to list the current crontab jobs of the Apache user:
$output = shell_ex
You could try overriding the EDITOR environment variable with something like ed which can take a sequence of edit commands over standard input.
EDITOR
ed