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

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

2004-07-26 Thread Katie Marquez
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)? The PHP manual's search engine returns me (among others)the "Chapte

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

[PHP] Operator question

2003-12-09 Thread Jeff McKeon
In PHP, what does the operator "-=" do? I can't find a ref to it's function in the online manual or any books I have. Thanks, Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] "::" operator problem

2003-07-17 Thread Mirek Novak
Hi, I have defined class 'image' with method 'getData' so can I do this TIA -- Mirek Novak jabberID: [EMAIL PROTECTED] ICQ: 119499448 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] [] operator not supported for strings

2003-06-27 Thread Andrew McCombe
Hi 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]: $rst2=sql_call("SELECT * FROM tmenu WHERE parent=".$r['id']); // now have array of corporate, entertainment and identity for

[PHP] Operator missing?

2002-07-10 Thread Alberto Serra
ðÒÉ×ÅÔ! in PHP we have a set of comparison operators going like $a == $b (has same value) $a === $b (has same value and type) shouldn't we have also something like $a =&= $b (is same instance)? Maybe we already have it and I just don't know about it. Is that so? Because of the copy/reference m

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

[PHP] % operator

2001-02-03 Thread Dhaval Desai
Hi! what is the use of % Is it called modulo..what is it's use in PHP.? Thanx! Dhaval Desai __ Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.ne