$title = "בלה בלה בלה"; echo '<script type="text/javascript">document.title = "'.$title.'";</script>';