RE: [PHP-ES] funciones con parametros opcionales
| From: | Roberto Lizana | Date: | Thu, 20 Feb 2003 11:46:58 +0000 |
| Subject: | RE: [PHP-ES] funciones con parametros opcionales | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-32712@lists.php.net to get a copy of this message | ||
como por ejemplo:
function AddText($text){
echo $text;
}
function AddText($text,$aling){
echo "<DIV ALING='$aling'>$text</DIV>";
}
A esto me refiero, como puedo crear dos funciones con el mismo nombre pero
con parametros diferentes, o parametros anidados.
-----Mensaje original-----
De: Gestoria Gonzalez Buendia SL [mailto:juliusromo@terra.es]
Enviado el: jueves, 20 de febrero de 2003 12:39
Para: lista@phpes.com
Asunto: Re: [PHP-ES] funciones con parametros opcionales
¿A que te refieres concretamente? ¿Podrías poner algun ejemplo?
---------------------------------------------------------------------
Archivo On-line: http://www.phpes.com/
via news: news://news.phpes.com/
Manual PHP en español: http://www.php.net/manual/es/
Para dar de baja la suscripción, mande un mensaje a:
lista-unsubscribe@phpes.com