Tema
:
Variables $_GLOBAL en una funcion
Ver Mensaje Individual
#
9
(
permalink
)
19/06/2009, 23:14
gjx2
Fecha de Ingreso: agosto-2008
Ubicación: R.D
Mensajes: 1.153
Antigüedad: 16 años, 7 meses
Puntos: 139
Respuesta: Variables $_GLOBAL en una funcion
La diferencia entre $GLOBALS y global
Es que $GLOBALS trabaja como matriz asociativa
Ejemplo
Código PHP:
<?php
$Nombre
=
"Miguel"
;
echo
getNombre
();
function
getNombre
(){
return
$GLOBALS
[
"Nombre"
];
}
?>
gjx2
Ver Perfil
Buscar todos los Mensajes de gjx2