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