> -----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 can get to this would be something like: my_function($bob, $a=='H'?'Y':NULL); but then my_function has got to know to expect a NULL instead of a missing parameter...! Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php