What is the significance of the double arrow (=>) and double colon (::) operators in PHP, and how are they used in code examples?

The double arrow (=>) operator is used in PHP to assign values to keys in an associative array. It is commonly used when defining arrays with key-value pairs. On the other hand, the double colon (::) operator is used in PHP to access static methods or properties of a class without needing to instantiate an object of that class. Example:

// Using the double arrow (=>) operator to create an associative array
$person = array(
    'name' => 'John',
    'age' => 30,
    'city' => 'New York'
);

// Accessing a static method using the double colon (::) operator
class Math {
    public static function add($a, $b) {
        return $a + $b;
    }
}

echo Math::add(5, 3); // Output: 8