Try: $result = getvar($somevariablethatdoesntexist);
var_dump($result); No way it will complain. The isset() will prevent that. PS: Still having doubts why you need it. What happens if the variable that you pass to the function EXISTS and it is set to FALSE. Like so: $variable = false; $result1 = getvar($variable); $result2 = getvar($somevariablethatdoesntexist); Both $result1 and $result2 will be set to false. On the first call because that's the value of the variable, and on the second because the variable is not defined (aka set). -MI --------------------------------------------------------------------------- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -----Mensaje original----- De: [email protected] [mailto:[EMAIL PROTECTED] En nombre de AD7six Enviado el: MiƩrcoles, 14 de Febrero de 2007 08:10 a.m. Para: Cake PHP Asunto: Re: is there a function exist($var) somewhere that I didn't find? Will that ever return false, or prevent the error message when you try to pass a none-existant variable to it ;)? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
