How can parameters be passed to an iframe URL in PHP to identify the source page?

When embedding an iframe in a web page, you may want to pass parameters to the iframe URL to identify the source page. This can be achieved by appending the parameters to the iframe URL using PHP. By doing this, the iframe can receive the parameters and use them to determine the source page.

<?php
$source_page = "example.com";
$parameter1 = "value1";
$parameter2 = "value2";

$iframe_url = "https://www.iframeurl.com?source_page=$source_page&param1=$parameter1&param2=$parameter2";

echo "<iframe src='$iframe_url' width='100%' height='500'></iframe>";
?>