Curso desarrollo web con PHP
Enviado por Johnatan Paloma • 17 de Julio de 2023 • Trabajo • 1.119 Palabras (5 Páginas) • 193 Visitas
ACTIVIDAD DE APRENDIZAJE 2:
EVIDENCIA: TALLER " USO DE ARREGLOS O ARRAY"-EV01: INFORME: MATRIZ de análisis estratégico.
JOHNATAN STEVEN PALOMÁ GUTIERREZ
SERVICIO NACIONAL DE APRENDIZAJE (SENA)
CURSO DESARROLLO WEB CON PHP
2023
<?php
/*
Nombre: Johnatan Steven Palomá Gutierrez
Programa: Desarrollo web con PHP
Evidencia 2: Taller "Uso de arreglos"
*/
//Definimos el Arreglo con los datos de las personas, Arreglo con llaves numéricas
$datospersonas = array(
array(
"nombre" => "Karen Sanchez",
"direccion" => "Cra 16 # 3b-15",
"telefono" => "3116892355",
"fecha_cumpleanos" => "21/06/2000",
"color_favorito" => "rosado",
"significado" => "romance y tranquilidad"
),
array(
"nombre" => "Nicolas Leandro",
"direccion" => "Cra 24 sur # 3-24",
"telefono" => "3203690253",
"fecha_cumpleanos" => "23/09/2010",
"color_favorito" => "rojo",
"significado" => "alegría y felicidad"
),
array(
"nombre" => "Juan Losada",
"direccion" => "Cll 7 # 9-34",
"telefono" => "3105104913",
"fecha_cumpleanos" => "18/05/1992",
"color_favorito" => "verde",
"significado" => "pasión y energía"
),
array(
"nombre" => "Martha Perez",
"direccion" => "Av jimenez",
"telefono" => "3154026931",
"fecha_cumpleanos" => "15/12/1989",
"color_favorito" => "rosado",
"significado" => "romance y tranquilidad"
),
array(
"nombre" => "Pablo Trujillo",
"direccion" => "Cll 9 # 5-21",
"telefono" => "3125924670",
"fecha_cumpleanos" => "05/05/1994",
"color_favorito" => "rojo",
"significado" => "alegría y felicidad"
)
);
?>
<!DOCTYPE html> <!--escribimos el código HTML -->
<head>
<title>Actividad 2 - Array</title>
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1" />
</head>
<body style="text-align: center;">
<table align='center' border="1" width="60%" cellspacing="0"> <!--Creamos la tabla y la cabecera de titulos-->
<tr>
<th bgcolor='#A4A4A4'>Nombre</th>
<th bgcolor='#A4A4A4'>Dirección</th>
<th bgcolor='#A4A4A4'>Teléfono</th>
<th bgcolor='#A4A4A4'>Fecha de Cumpleaños</th>
<th bgcolor='#A4A4A4'>Color Favorito</th>
...