What are some methods to achieve this in PHP, besides using array_keys and max functions?

To find the key of the highest value in an associative array in PHP without using array_keys and max functions, you can loop through the array and keep track of the key with the highest value. Initialize variables to store the highest value and key, then iterate over the array, updating the variables if a higher value is found.

$array = array("a" => 10, "b" => 20, "c" => 15);
$highestValue = null;
$highestKey = null;

foreach ($array as $key => $value) {
    if ($highestValue === null || $value > $highestValue) {
        $highestValue = $value;
        $highestKey = $key;
    }
}

echo "The key with the highest value is: " . $highestKey;