Or the quick and dirty: echo @$var;
Not that I recommend it as a good practice, but sometimes it's just handy ... ; ). -- Felix Geisendörfer aka the_undefined -------------------------- http://www.thinkingphp.org http://www.fg-webdesign.de mariano.iglesias wrote: > function getvar($var) > { > return (isset($var) ? $var : false); > } > > On Feb 14, 6:35 am, "DaddyCool78" <[EMAIL PROTECTED]> wrote: > >> I misexplain myself I think.. >> >> What I'm looking for is : a function that will : >> 1- check if the $variable exist (isset) >> 2- return the $variable if isset >> 3- return something (false) if is not set >> > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
