user45032: I think I have a supplement question. If irrelevant , then sorry in advance. 
I have nested array in post like:  from apache web server page index.php
$_POST['colorsarray'][0] = '#ff0000';
$_POST['colorsarray'][1] = '#2d67ea';
$_POST['colorsarray'][3] = '#7cf325';
$_POST['mode'] = 'none';
$_POST['singlecolour'] = '#ff0000';
Can you suggest me how to assign this array (coloursarray) directly to another array in espwebserver. In other use cases , only the list (length) of array will increase and is not know until the variable arrives from client. 
Thanks in advance. 

user27653: The ability for PHP to do this is special to PHP. The PHP program parses the field names as PHP arrays if they are named thus:
<form ....>
<input name="[colorsarray][0]" value="#ff0000" />
<input name="[colorsarray][1]" value="#2d67ea" />
<input name="[colorsarray][2]" value="#000000" />
<input name="[colorsarray][3]" value="#7cf325" />
[...]
</form>

But since the ESP8266's core doesn't use PHP or understand PHP arrays, you will have to use the literal field name [colorsarray][3], parse it yourself, and determine at run-time the length of the array and how much memory is needed, etc.

45032: <p>I think I have a supplement question. If irrelevant , then sorry in advance. </p>

<p>I have nested array in post like:  from apache web server page index.php</p>

<p>$_POST['colorsarray'][0] = '#ff0000';<br>
$_POST['colorsarray'][1] = '#2d67ea';<br>
$_POST['colorsarray'][3] = '#7cf325';<br>
$_POST['mode'] = 'none';<br>
$_POST['singlecolour'] = '#ff0000';<br></p>

<p>Can you suggest me how to assign this array (coloursarray) directly to another array in espwebserver. In other use cases , only the list (length) of array will increase and is not know until the variable arrives from client. </p>

<p>Thanks in advance. </p>
 27653: <p>The ability for PHP to do this is special to PHP. The PHP program parses the field names as PHP arrays if they are named thus:</p>

<pre><code>&lt;form ....&gt;
&lt;input name="[colorsarray][0]" value="#ff0000" /&gt;
&lt;input name="[colorsarray][1]" value="#2d67ea" /&gt;
&lt;input name="[colorsarray][2]" value="#000000" /&gt;
&lt;input name="[colorsarray][3]" value="#7cf325" /&gt;
[...]
&lt;/form&gt;
</code></pre>

<p>But since the ESP8266's core doesn't use PHP or understand PHP arrays, you will have to use the literal field name <code>[colorsarray][3]</code>, parse it yourself, and determine at run-time the length of the array and how much memory is needed, etc.</p>
