How can the open() function in PHP be used to control the size of popups?

To control the size of popups in PHP, you can use the open() function with specific parameters to set the width and height of the popup window. By passing the desired width and height values as arguments to the function, you can customize the size of the popup window according to your requirements.

echo '<script type="text/javascript">';
echo 'window.open("popup.html", "_blank", "width=400, height=400");';
echo '</script>';