PHP Output an Array
To output an array, use var_dump.
See the example:
<?php
$arr = [1, 2, 3];
var_dump($arr);
?>
Code execution result:
[1, 2, 3]
To output an array, use var_dump.
See the example:
<?php
$arr = [1, 2, 3];
var_dump($arr);
?>
Code execution result:
[1, 2, 3]