Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/10/2014, 17:12
Avatar de pateketrueke
pateketrueke
Modernizr
 
Fecha de Ingreso: abril-2008
Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años, 4 meses
Puntos: 2534
Respuesta: No Warning with extra arguments

No existe nada para comprobar eso directamente así que tendrás que implementarlo por tu cuenta usando func_num_args() así:

Código PHP:
Ver original
  1. function foo() {
  2.   if (func_num_args() > 0) {
  3.     throw new Exception('Too many arguments!');
  4.   }
  5. }

Consulta el manual: http://php.net/manual/es/function.func-num-args.php
__________________
Y U NO RTFM? щ(ºдºщ)

No atiendo por MP nada que no sea personal.