![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
30/05/2011, 17:45
|
![Avatar de hackcrack](http://static.forosdelweb.com/customavatars/avatar402942_1.gif) | | | Fecha de Ingreso: abril-2011
Mensajes: 331
Antigüedad: 13 años, 10 meses Puntos: 9 | |
Respuesta: Tomar variable de un archivo php con function Osea que quedaria?
saluda.php
<?php
function saludo($nombre) {
$saluda = "hola".$nombre;
}
?>
muestra.php
<?php
global $saluda;
include("saluda.php");
saludo("hackcrack);
echo $saluda;
?>
asi??? |