I found this somewhere, and it's really worked wonders for me. Include it and call tor_new_identity('127.0.0.01', '9051'); for a new tor identity.
<?php
/**
* Switch TOR to a new identity.
**/
function tor_new_identity($tor_ip='127.0.0.1', $control_port='9051', $auth_code=''){...