What are the potential pitfalls of using meta refresh for redirecting in PHP?

Using meta refresh for redirecting in PHP can have potential pitfalls such as affecting SEO, causing accessibility issues for users with disabilities, and not being as reliable as server-side redirects. To solve this issue, it is recommended to use PHP header() function for server-side redirects.

<?php
header("Location: http://www.example.com");
exit();
?>