The concept of UserControl does not explicitly exist in PHP, although you can encapsulate the functionality you need in the file and use the include () function to place it on your pages wherever you want.
<html> <head> <title></title> </head> <body> <?php include('header.php'); ?> <?php include('pageBody.php'); ?> <?php include('footer.php'); ?> </body> </html>
Please note that Smarty provides a much better separation of processing and rendering and will make this type of thing super smooth.
source share