I am devolping a web application using symfony framework. I have a problem in forms. Here is my code:
$value = array();
foreach ($myArray as $value) {
$fieldNameAppend ='<input type="radio" name="'.$value.'Cleaning'.$id.'" value="'.$value.'Cleaning'.$id.'" id="'.$value.'Cleaning'.$id.'" class="inputFields">'.$value.'';
}
print_r($fieldNameAppend);
In the loop i got all data in allValues variable.But when I access outside the loop i got only one value.
Please help