rfc:readable_var_representation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
rfc:readable_var_representation [2021/02/05 14:29] tandrerfc:readable_var_representation [2021/02/06 00:27] tandre
Line 49: Line 49:
 php > echo var_representation([]);  // always print zero-element arrays without a newline php > echo var_representation([]);  // always print zero-element arrays without a newline
 [] []
-// lines are indented by a multiple of 2+// lines are indented by a multiple of 2, similar to var_export but not exactly the same
 php > echo var_representation([(object) ['key' => (object) ['inner' => [1.0], 'other' => new ArrayObject([2])], 'other' => false]]); php > echo var_representation([(object) ['key' => (object) ['inner' => [1.0], 'other' => new ArrayObject([2])], 'other' => false]]);
 [ [
rfc/readable_var_representation.txt · Last modified: 2021/02/19 15:19 by tandre