\RedBeanPHP\UtilDump

Dump helper

This code was originally part of the facade, however it has been decided to remove unique features to service classes like this to make them available to developers not using the facade class.

Dumps the contents of a bean in an array for debugging purposes.

Summary

Methods
Properties
Constants
dump()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

dump()

dump(\RedBeanPHP\OODBBean|array  $data) : array

Dumps bean data to array.

Given a one or more beans this method will return an array containing first part of the string representation of each item in the array.

Usage:

echo R::dump( $bean );

The example shows how to echo the result of a simple dump. This will print the string representation of the specified bean to the screen, limiting the output per bean to 35 characters to improve readability. Nested beans will also be dumped.

Parameters

\RedBeanPHP\OODBBean|array $data

either a bean or an array of beans

Returns

array