Re: [PHP] -> operator and :: (formal names?) (RESOLVED)

2004-07-26 Thread Mike Dichirico
Michael and Curt, Thank you very much with your time and promptness. You both have been very helpful. Kind regards, Katie - Original Message - From: "Curt Zirzow" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Monday, July 26, 2004 1:12 PM Su

Re: [PHP] -> operator and :: (formal names?)

2004-07-26 Thread Curt Zirzow
* Thus wrote Katie Marquez: > Hi! > > I did a search of the PHP manual for these: > > -> and :: > as far as the :: is, its name (in php): The Paamayim Nekudotayim. Paamayim Nekudotayim would, at first, seem a strange choice for a double-colon. However, at the time of writing of Zend Engine 0.

RE: [PHP] -> operator and :: (formal names?)

2004-07-26 Thread Michael Sims
Katie Marquez wrote: > Hi! > > I did a search of the PHP manual for these: > > -> and :: > > I know what they are used for, but what I don't know > is what they are formally called. Can someone tell me > what they are called (short of using the symbol in the > name)? I don't know what PHP's offic

Re: [PHP] Operator question

2003-12-09 Thread Jeffrey Labonski
Uhhh, nope. That only works in your code if $b is initially 0. They're shorthand for "do something and reassign". $a = 100; $a += 10; // $a = $a + 10 $a -= 10; // $a = $a - 10 $a /= 10; // etc... $a += 10; $a <<= 2; $a .= ' is a weird number'; $mode = 0755; $mode &= 01; --Je

Re: [PHP] Operator question

2003-12-09 Thread Matt Matijevich
In PHP, what does the operator "-=" do? $var -= 1 is the same as $var = $var - 1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Operator question

2003-12-09 Thread Richard Davey
Hello Jeff, Tuesday, December 9, 2003, 4:11:10 PM, you wrote: JM> In PHP, what does the operator "-=" do? I can't find a ref to it's JM> function in the online manual or any books I have. Set's a negative value: $a = 10; $b -= $a; or $b -= 10; In both cases $b will equal -10. -- Best rega

RE: [PHP] [] operator not supported for strings

2003-06-27 Thread Ford, Mike [LSS]
> -Original Message- > From: Andrew McCombe [mailto:[EMAIL PROTECTED] > Sent: 27 June 2003 11:18 > > Can anyone tell me why i'm getting this error? > > Fatal error: [] operator not supported for strings in > c:\inetpub\wwwroot\Iweb-sites\Exp\menu2.php on line 41 > > [code]: > > > $rst

Re: [PHP] % operator

2001-02-04 Thread Steve Werby
"Dhaval Desai" <[EMAIL PROTECTED]> wrote: > what is the use of % It returns a remainder. For example 7 % 2 = 1. > Is it called modulo..what is it's use in PHP.? There are plenty of situations where it's useful. For example, if you're displaying data in rows and want to shade every other row:

RE: [PHP] % operator

2001-02-04 Thread Eelco de Vries
It doesn't have a use in only PHP but in all programming languages. It's a math thing .. u can get a remainder of a division. 10%8 = 2 12%8 = 4 10%5 = 0 12%5 = 2 Simple application: $ppl = 23; $grpsize = 7; echo ("when $ppl people are divided over groups of $grpsize, ". $ppl%$grpsize ." people a