What is the difference between arrays and how can the origin of a dataset be determined in PHP?

Arrays in PHP can be indexed arrays or associative arrays. Indexed arrays use numerical indexes to access elements, while associative arrays use keys to access elements. To determine the origin of a dataset in PHP, you can use the `$_SERVER['HTTP_REFERER']` variable, which contains the URL of the page that referred the current page.

if(isset($_SERVER['HTTP_REFERER'])) {
    echo "Origin of dataset: " . $_SERVER['HTTP_REFERER'];
} else {
    echo "Origin of dataset unknown";
}