What is the best way to open two tabs with different pages using PHP and JavaScript?

To open two tabs with different pages using PHP and JavaScript, you can use the `window.open()` method in JavaScript to open a new tab with the desired URL. You can then pass the URL as a parameter from PHP to the JavaScript function to open the second tab with a different page.

<?php
$url1 = "https://www.example.com/page1";
$url2 = "https://www.example.com/page2";
?>

<script>
    window.open('<?php echo $url1; ?>', '_blank');
    window.open('<?php echo $url2; ?>', '_blank');
</script>