On Tue, 2003-06-03 at 20:02, Chris Cameron wrote: > On Tue, 2003-06-03 at 20:59, Lars Torben Wilson wrote: > > On Tue, 2003-06-03 at 19:49, Chris Cameron wrote: > > > > > > An example that looks like it -should- work: > > > > > > $Math = sqrt(81)(5+4)-1; > > > > > > What is the relation between the sqrt(81) and the (5+4)-1? i.e. there > > is no operator there...which operator *should* be there? > > > > Hmm, I'm thinking multiplication. It's been a while since I've been in a > classroom, but "9(9)" would mean '81' to me. Although it's looking as > though PHP doesn't do things like that. > > Being able to do that though really "cleans" things up for me though. Unfortunately, that's not how PHP works...for one thing, the parser would need some kind of insight into when something next to a set of parentheses should be multiplied with the contents of the parens...:)
FWIW, 9(9) means '9 * (9)' to me, but only on paper, and in the context of algebra. In the context of programming, I would typically read it as 'call the function named 9 with the argument 9'. The multiplication operator in PHP is *. Hope this helps, Torben > > Torben > > > > > Thanks, > > > Chris > > > > > > -- > > > Chris Cameron > > > UpNIX Internet Administrator > > > ardvark.upnix.net > > > bitbucket.upnix.net > > > -- > > > http://www.upnix.com > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php