php-doc-en/reference/var
Tyson Andre 565d140248 Update note on print_r() and var_export() using output buffering
var_export stopped using output buffering to convert output to a string
long before php 7.0. See
https://github.com/php/php-src/blob/PHP-7.0/ext/standard/var.c#L564-L582

highlight_string/highlight_file are still using output buffering.

```
<?php
function my_buffer($value) {
    fprintf(STDERR, "var_export output: %s\n", var_export(array(), true));
    fprintf(STDERR, "print_r output: %s\n", print_r(array(), true));
    //fprintf(STDERR, "highlight_string output: %s\n", highlight_string('2+2', true));
    return $value;
}
ob_start('my_buffer');
echo "test";
$result = ob_get_clean();
echo "Result: $result\n";
```

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-381.
2021-02-15 15:32:20 +01:00
..
functions Update note on print_r() and var_export() using output buffering 2021-02-15 15:32:20 +01:00
book.xml Delete redundant <!-- Membership: --> 2013-05-23 17:38:21 +00:00
constants.xml
ini.xml Remove PHP 4 and 5.0.0 mentions. 2019-06-08 15:52:28 +00:00
reference.xml
setup.xml
versions.xml Added PHP 8 into revision version set for var functions 2021-01-16 01:11:04 +01:00