---
title: newrelic_ignore_apdex (PHP agent API)
source: https://docs.newrelic.com/docs/apm/agents/php-agent/php-agent-api/newrelic_ignore_apdex
---

## Syntax

```php
newrelic_ignore_apdex()
```

Ignore the current transaction when calculating Apdex.

## Requirements

Compatible with all agent versions.

## Description

Ignores the current transaction when calculating your [Apdex score](https://docs.newrelic.com/docs/apm/new-relic-apm/apdex/apdex-measuring-user-satisfaction). This is useful when you have either very short or very long transactions (such as file downloads) that can skew your Apdex score.

## Parameters

This call does not accept any parameters.

## Examples

```php
function example() {
    if (extension_loaded('newrelic')) { // Ensure PHP agent is available
        newrelic_ignore_apdex();
    }
    // ...
}
```
