Ver Mensaje Individual
  #5 (permalink)  
Antiguo 16/05/2010, 05:49
Sard
 
Fecha de Ingreso: marzo-2008
Mensajes: 105
Antigüedad: 16 años, 1 mes
Puntos: 0
Respuesta: Problema con Arrays(novato)

Código PHP:
Ver original
  1. <?php
  2. $profesores = array {
  3. 'Nombre': 'Javier de reyes',
  4. 'Asignatura': 'Lak sea',
  5. 'Edad': '28'};
  6.  
  7. $profesores2= array {
  8. 'Nombre': 'Miguel Angel Blanch Lardin',
  9. 'Asignatura': 'Portales',
  10. 'Edad': '28'};
  11.  
  12. foreach ($profesores as $p)
  13. print ($p['Nombre'];['Edad']
  14. foreach ($profesores2 as $p2)
  15. print ($p2['Nombre'];['Edad']
  16. ?>