My bash script call a php file
#!/bin/bash
data=$(./getconfig.php)
The file getconfig.php is:
#!/usr/bin/env php
<?php
$array = array();
...
How can I return the $array from the php file in order to manipulate this array in the bash script?