RE: [PHP] simple function question.

2002-04-11 Thread Ford, Mike [LSS]
> -Original Message- > From: Jeff Bearer [mailto:[EMAIL PROTECTED]] > Sent: 10 April 2002 15:13 > [snip] > > but If it's possible I'd like to do it with one line > something that I'd > think it would be like this. > > my_function($bob,if($a=='H') return 'Y'; ); I think the nearest you

Re: [PHP] simple function question.

2002-04-10 Thread pong-TC
[EMAIL PROTECTED] writes: >this is a very simple question. I'm trying to figure out if there is a >one line way to do this: > >I want to pass a variable to the function only if it matches a certin >value, I know I can do this: > >if($a=='H') my_function($bob,'Y'); >else my_function($bob); You can