title: Passing arrays from bash to PHP
body: <p>Is it possible to do something like this in order to get the output below.</p>
  
  <p><strong>Bash</strong></p>
  
  <pre><code>myArray='\${array("Red","Green","Blue")};'
  echo $myArray
  </code></pre>
  
  <p><strong>PHP</strong></p>
  
  <pre><code>$ScriptData = "${shell_exec('script.sh')}:"
  var_dump($ScriptData);
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>array(3) { 
      [0]=&gt; string(3) "Red" 
      [1]=&gt; string(5) "Green" 
      [2]=&gt; string(4) "Blue" 
  }
  </code></pre>