Someone else asked this question not too long ago.
Of course there is no way to delete all cookies via a PHP script(*). Think about it: would you want some random PHP script on the internet deleting files from your hard drive? Didn't think so.
* = Okay, so technically it's possible, but only if the PHP script is executed on your local computer. For all practical purposes, it can't be done.