print_r

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Prints human-readable information about a variable
<?php print_r(mixed $value, bool $return = false): string|bool
<?php             is_array($value) => '[]',

            is_object($value) => get_class($value),

            is_string($value) => $value,

            default => print_r($value, true),

        };

    }

}
<?php             sprintf(

                'Event [%s] does not have the [%s] listener attached to it',

                $expectedEvent,

                print_r($expectedListener, true)

            )

        );

    }
<?php )



EOTXT;

        $this->assertSame(sprintf($expected, \PHP_INT_MAX), print_r($clone, true));

    }



    public function testClone()
<?php )



EOTXT;

        $this->assertStringMatchesFormat($expected, print_r($clone, true));

    }



    public function testLimits()
<?php )



EOTXT;

        $this->assertStringMatchesFormat($expected, print_r($clone, true));

    }



    public function testJsonCast()
<?php )



EOTXT;

        $this->assertStringMatchesFormat($expected, print_r($clone, true));

    }
<?php )



EOTXT;

        $this->assertStringMatchesFormat($expected, print_r($clone, true));

    }
<?php )



EOTXT;

        $this->assertStringMatchesFormat($expected, print_r($clone, true));

    }

}
<?php         if (! $event) {

            $eventData = 'null';

        } else {

            $eventData = print_r($event, true);

        }



        parent::__construct("This handler expected to be invoked with a $expectedEventType event. Instead, the handler was invoked with invalid event data: $eventData");