diff --git a/arreglos.php b/arreglos.php new file mode 100644 index 0000000..15c5adc --- /dev/null +++ b/arreglos.php @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/ej1.php b/ej1.php new file mode 100644 index 0000000..89b89b5 --- /dev/null +++ b/ej1.php @@ -0,0 +1,36 @@ + + + + + + Ejercicio 1 PHP + + + +

Ejercicio 1 PHP

+
+ + +
+ +
+
+ +
+ + + + + + \ No newline at end of file diff --git a/ej2.php b/ej2.php new file mode 100644 index 0000000..b83ee3b --- /dev/null +++ b/ej2.php @@ -0,0 +1,81 @@ + 0){ + $msg .= "$contador ). producto" .($numero1 * $iteraciones) . "
"; + $contador ++; + $iteraciones --; + + } +} +if(isset($_POST["btnFoc"])){ //factorial del numero 2 + $numero1 = intval($_POST["numero1"]); + $factorial = 1; + + for($i= $numero1;$i>=1;$i--){ + $factorial*=$i; + } + $msg = "el factorial de $numero1 es $factorial"; + +} + +//tarea no perder la iteracion seleccionada + + +?> + + + + + formulario + + +

formulario

+
+ + + +
+ + + +
+ + +
+ + + +
+ +
+ +
+ + + \ No newline at end of file diff --git a/ej5.php b/ej5.php new file mode 100644 index 0000000..fc8c39d --- /dev/null +++ b/ej5.php @@ -0,0 +1,58 @@ + + + + + + + Funciones y Session + + +

Funciones y el arreglo Session

+
+ + +
+ + + + +
+
+ +
+ + \ No newline at end of file diff --git a/eje3.php b/eje3.php new file mode 100644 index 0000000..e2e416b --- /dev/null +++ b/eje3.php @@ -0,0 +1,71 @@ +"; + + $arreglo2 = array("nombre" => "Fulano", + "apellido" => "De Tal", + "edad" => 20); + + print_r($arreglo2); + + + echo "
"; + + $arreglo2[]="Esto no tiene llave"; + $arreglo2["titulo"]="Sr."; + + print_r($arreglo2); + echo"
"; + + $personas = array(); + $personas[] = $arreglo2; + $personas[]= $arreglo; + + print_r($personas); + + +echo "

"; + + foreach($personas as $key => $value){ + echo "$key ->"; + if(is_array($value)){ + foreach($value as $key2=>$value2){ + echo"
.......$key2 -> $value2"; + } + + }else { + echo $value; + } + + echo"
"; + + } + + + +?> + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test.html b/test.html new file mode 100644 index 0000000..e69de29 diff --git a/testhtml.html b/testhtml.html new file mode 100644 index 0000000..e69de29