<?php for($i=1;$i<=40;$i++){ if(! isset(${"horario" . $i})) ${"horario" . $i} = $i; $myArray[${"horario" . $i}] = 'horario'.$i; } print_r( $myArray );
You have javascript disabled. You will not be able to edit any code.