title: How can I save a PHP array to a PHP file with the right lines and spaces?
body: <p>I have the following array, and I want save it to a PHP file, like <code>myfile.php</code>, but I want have the right spaces between one array to other. I need my file to look exactly like this array:</p>
  
  <pre><code>$array = [
      "one" =&gt; [
          "key1" =&gt; "value1",
          "key2" =&gt; "value2",
          "key3" =&gt; [
              "key1" =&gt; "value3",
              "key2" =&gt; "value4",
              "key3" =&gt; [
                  "value5",
                  "value6",
                  "value7",
                  "value8",
                  "value9"
              ],
              "key4" =&gt; "value10",
              "key5" =&gt; "value11"
          ],
          "key4" =&gt; "value12",
          "key5" =&gt; "value13"
      ]
  ];
  </code></pre>