```
 $registrationIds=array("My Key");
$fields = array
(
    'registration_ids'  => $registrationIds,
    'data'          => array
(
    'message'=>'here is a message. message',

)
);
 $key="1234444";
$headers = array
(
    'Authorization:key='.$key,
    'Content-Type: application/json'
);

$ch = curl_init();
curl_setopt( $ch,CURLOPT_URL, 'https://android.googleapis.com/gcm/send' );
curl_setopt( $ch,CURLOPT_POST, true );
curl_setopt( $ch,CURLOPT_HTTPHEADER, $headers );
curl_setopt( $ch,CURLOPT_RETURNTRANSFER, true );
curl_setopt( $ch,CURLOPT_SSL_VERIFYPEER, false );
curl_setopt( $ch,CURLOPT_POSTFIELDS, json_encode( $fields ) );
$result = curl_exec($ch );
curl_close( $ch );
return $result;

```

Output:

{ multicast\_id: 7750113442176841000, success: 0, failure: 1, canonical\_ids: 0, results: [ { error: "MismatchSenderId" } ] }