All pastes #201150 Raw Edit

MetaPhaze

public php v1 · immutable
#201150 ·published 2006-10-13 17:06 UTC
rendered paste body
function GetFormData($_POST){$output = array();foreach ($_POST AS $first => $A)	{		if (is_array($A))		{			foreach ($A AS $second => $B)			{				if (is_array($B))				{					foreach ($B AS $third => $C)					{						if (is_array($C))						{							foreach ($C AS $fourth => $D)							{							echo $third.":  ".$D."<br />";							$output[$third] = $D;							}						}						else						{							echo $second.":  ".$C."<br />";							$output[$second] = $C;						}					}				}				else				{					echo $first.":  ".$B."<br />";					$output[$first] = $B;				}			}		}		else		{			echo $first.":  ".$A."<br />";			$output[$first] = $A;		}	}return ($output);}