Re: [PHP] What does mean?

2007-05-03 Thread itoctopus
never ever used it... I also voted! -- itoctopus - http://www.itoctopus.com Philip Thompson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Apr 30, 2007, at 2:17 PM, Greg Donald wrote: On 4/30/07, Nick Gorbikoff [EMAIL PROTECTED] wrote: Hello, folks. I rember I've since this

RE: [PHP] What does mean?

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 6:33 pm, Daevid Vincent wrote: echo BROWSER: . $_SERVER['HTTP_USER_AGENT'] . \n; I've always had problems with heredoc when I try using arrays like that. I will either pull them into a straight $foo, or use the ${} thing. It probably won't do 2-D arrays, but 1-D

Re: [PHP] What does mean?

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 7:19 pm, Richard Davey wrote: Greg Donald wrote: On 4/30/07, Daevid Vincent [EMAIL PROTECTED] wrote: echo EOF BROWSER: $_SERVER[HTTP_USER_AGENT] EOF; Isn't that form (sans quote marks) deprecated and frowned upon? ?php error_reporting( E_ALL ); echo EOF

Re: [PHP] What does mean?

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 7:44 pm, Greg Donald wrote: On 4/30/07, Greg Donald [EMAIL PROTECTED] wrote: All parts of a heredoc statement do not have to be right justified, only the closing line. I meant my other right, the one on my left. Sorry. You don't *HAVE* to left-justify the rest

Re: [PHP] What does mean?

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 3:41 pm, Micky Hulse wrote: Daniel Brown wrote: Actually, that should be directed at the OP who said that. I was able to bring up the heredoc, too. ;-P Ooops! Sorry Daniel, I meant to reply to Nick... My mistake. :( Cool! They fixed http://php.net/ to go to the

Re: [PHP] What does mean?

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 7:18 pm, Paul Novitski wrote: When I first started using PHP I thought that each heredoc label had to be unique. Turns out that's not true, and now I use the simple shorthand: $sResult = _ Some text. _; I suspect earlier versions of PHP required unique labels... At

Re: [PHP] What does mean?

2007-05-02 Thread Daniel Brown
On 5/2/07, Richard Lynch [EMAIL PROTECTED] wrote: Cool! They fixed http://php.net/ to go to the strings page! Just wish it jumped to the anchor as well... :-) I'm greedy. :-) :-) :-) I'll say you are! Next you'll want all of the links on the site to point to the correct spots! -- Daniel

Re: [PHP] What does mean?

2007-05-02 Thread Daniel Brown
No, to my knowledge, even PHP3 (I honestly don't remember if it was in PHP/FI, but I don't think so) allowed you to use the same name for multiple heredoc's. It just works like the for/next concept in BASIC for this = this to that (do something), next this. Meaning that as soon as the

Re: [PHP] What does mean?

2007-05-01 Thread Larry Garfield
On Monday 30 April 2007, Greg Donald wrote: Sounds like you got MVC-itis. PHP can't really help with that since it's a templating language. Try Rubyonrails, it's the best cure for the MVC itch. Except that it's a PAC framework, not MVC, like the vast majority of web apps frameworks out

Re: [PHP] What does mean?

2007-05-01 Thread Greg Donald
On 4/30/07, Micky Hulse [EMAIL PROTECTED] wrote: Greg Donald wrote: Try Rubyonrails, it's the best cure for the MVC itch. Django framework is pretty nice too. :) Django is very under-developed compared to Rails. There's not a Javascript library in sight and the developers have a do it

Re: [PHP] What does mean?

2007-05-01 Thread Richard Davey
Greg Donald wrote: On 4/30/07, Richard Davey [EMAIL PROTECTED] wrote: I'm not dissing heredoc syntax, it has its uses (now and again) but it's far from clean, especially when embedded deep in classes Classes? PHP is the absolute worst language to do OO programming in. If you like OO, move

[PHP] What does mean?

2007-04-30 Thread Nick Gorbikoff
Hello, folks. I rember I've since this somewhere in perl and it has somethign to do with blocks of code. I came across the same thing in some PHP code. END some code END What exactly does it mean. BTW: PHP .net search breaks if you search for Regards,

Re: [PHP] What does mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Nick Gorbikoff [EMAIL PROTECTED] wrote: Hello, folks. I rember I've since this somewhere in perl and it has somethign to do with blocks of code. I came across the same thing in some PHP code. END some code END What exactly does it mean. BTW: PHP .net search breaks if you

Re: [PHP] What does mean?

2007-04-30 Thread Daniel Brown
It means to read until it reaches the matching expression --- in this case, END. On 4/30/07, Nick Gorbikoff [EMAIL PROTECTED] wrote: Hello, folks. I rember I've since this somewhere in perl and it has somethign to do with blocks of code. I came across the same thing in some PHP code. END

Re: [PHP] What does mean?

2007-04-30 Thread Micky Hulse
Hi Daniel, Daniel Brown wrote: BTW: PHP .net search breaks if you search for Try this: www.php.net/ And then scroll down to heredoc section. Heredoc comes in handy from time-to-time. Cheers, M -- Wishlists: http://snipurl.com/1gqpj Switch: http://browsehappy.com/ BCC?:

Re: [PHP] What does mean?

2007-04-30 Thread Daniel Brown
Actually, that should be directed at the OP who said that. I was able to bring up the heredoc, too. ;-P On 4/30/07, Micky Hulse [EMAIL PROTECTED] wrote: Hi Daniel, Daniel Brown wrote: BTW: PHP .net search breaks if you search for Try this: www.php.net/ And then scroll down to

Re: [PHP] What does mean?

2007-04-30 Thread Micky Hulse
Daniel Brown wrote: Actually, that should be directed at the OP who said that. I was able to bring up the heredoc, too. ;-P Ooops! Sorry Daniel, I meant to reply to Nick... My mistake. :( -- Wishlists: http://snipurl.com/1gqpj Switch: http://browsehappy.com/ BCC?:

Re: [PHP] What does mean?

2007-04-30 Thread Daniel Brown
No need to apologize at all, Micky! On 4/30/07, Micky Hulse [EMAIL PROTECTED] wrote: Daniel Brown wrote: Actually, that should be directed at the OP who said that. I was able to bring up the heredoc, too. ;-P Ooops! Sorry Daniel, I meant to reply to Nick... My mistake. :( --

Re: [PHP] What does mean?

2007-04-30 Thread Philip Thompson
On Apr 30, 2007, at 2:17 PM, Greg Donald wrote: On 4/30/07, Nick Gorbikoff [EMAIL PROTECTED] wrote: Hello, folks. I rember I've since this somewhere in perl and it has somethign to do with blocks of code. I came across the same thing in some PHP code. END some code END What

Re: [PHP] What does mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Philip Thompson [EMAIL PROTECTED] wrote: Ok, let's gather some stats to see how many people actually use the heredoc syntax. I created this quick little form to gather the data. It's takes 2 seconds (literally) - vote here: http://thril.uark.edu/heredoc/ If you're not using it

RE: [PHP] What does mean?

2007-04-30 Thread Daevid Vincent
echo BROWSER: . $_SERVER['HTTP_USER_AGENT'] . \n; I've always had problems with heredoc when I try using arrays like that. I will either pull them into a straight $foo, or use the ${} thing. echo EOF BROWSER: $_SERVER[HTTP_USER_AGENT] EOF; Isn't that form (sans quote marks) deprecated and

Re: [PHP] What does mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Daevid Vincent [EMAIL PROTECTED] wrote: echo EOF BROWSER: $_SERVER[HTTP_USER_AGENT] EOF; Isn't that form (sans quote marks) deprecated and frowned upon? ?php error_reporting( E_ALL ); echo EOF BROWSER: $_SERVER[HTTP_USER_AGENT] EOF; Why would cleaner, perfectly error free

RE: [PHP] What does mean?

2007-04-30 Thread Brian Seymour
Heredoc is truly a great thing. You'll learn to love heredoc whenever you have tons of stuff you need to print instead of escaping php. A great example is output that comes from classes, where you can't break the class into multiple code blocks. Just don't forget that heredoc end part has to be on

Re: [PHP] What does mean?

2007-04-30 Thread Paul Novitski
At 4/30/2007 03:38 PM, Philip Thompson wrote: Ok, let's gather some stats to see how many people actually use the heredoc syntax. I created this quick little form to gather the data. It's takes 2 seconds (literally) - vote here: http://thril.uark.edu/heredoc/ I'm interested in knowing if this

Re: [PHP] What does mean?

2007-04-30 Thread Richard Davey
Greg Donald wrote: On 4/30/07, Daevid Vincent [EMAIL PROTECTED] wrote: echo EOF BROWSER: $_SERVER[HTTP_USER_AGENT] EOF; Isn't that form (sans quote marks) deprecated and frowned upon? ?php error_reporting( E_ALL ); echo EOF BROWSER: $_SERVER[HTTP_USER_AGENT] EOF; Why would cleaner,

Re: [PHP] What does mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Richard Davey [EMAIL PROTECTED] wrote: I'm not dissing heredoc syntax, it has its uses (now and again) but it's far from clean, especially when embedded deep in classes Classes? PHP is the absolute worst language to do OO programming in. If you like OO, move on to ruby or python,

Re: [PHP] What does mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Greg Donald [EMAIL PROTECTED] wrote: All parts of a heredoc statement do not have to be right justified, only the closing line. I meant my other right, the one on my left. Sorry. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] What does mean?

2007-04-30 Thread Robert Cummings
On Mon, 2007-04-30 at 19:42 -0500, Greg Donald wrote: On 4/30/07, Richard Davey [EMAIL PROTECTED] wrote: I'm not dissing heredoc syntax, it has its uses (now and again) but it's far from clean, especially when embedded deep in classes Classes? PHP is the absolute worst language to do OO

Re: [PHP] What does mean?

2007-04-30 Thread Micky Hulse
Greg Donald wrote: Try Rubyonrails, it's the best cure for the MVC itch. Django framework is pretty nice too. :) -- Wishlists: http://snipurl.com/1gqpj Switch: http://browsehappy.com/ BCC?: http://snipurl.com/w6f8 My: http://del.icio.us/mhulse -- PHP General Mailing List

Re: [PHP] What does - mean?

2003-08-14 Thread Petre Agenbag
You should read up on classes and objects in the manual. On Thu, 2003-08-14 at 09:14, James Johnson wrote: Hello, I've searched through Zend and php.net and can't find the answer. In the following code: $this-vendor = $vendor; What does the - mean or do? Thanks, James --

Re: [PHP] What does - mean?

2003-08-14 Thread Marco Schuler
Hi James Am Donnerstag, 14. August 2003 um 09:14 schrieb James Johnson: Hello, I've searched through Zend and php.net and can't find the answer. In the following code: $this-vendor = $vendor; What does the - mean or do? http://www.php.net/manual/en/language.oop.php -- Cheers! Marco

[PHP] What does - mean?

2003-08-14 Thread James Johnson
Hello, I've searched through Zend and php.net and can't find the answer. In the following code: $this-vendor = $vendor; What does the - mean or do? Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What does - mean?

2003-08-14 Thread murugesan
[EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 14, 2003 12:44 PM Subject: [PHP] What does - mean? Hello, I've searched through Zend and php.net and can't find the answer. In the following code: $this-vendor = $vendor; What does the - mean or do? Thanks, James -- PHP

[PHP] what does _\\_ mean?

2002-10-12 Thread Ns_Andy
I ,beginner of PHP, would like to ask what _\\_ means? Here's the code: $fp = fopen (a.txt) while ($buf = fgets($fp,1024) { trim($buf) if (substr($buf,-1 == _\\_) { . .. with the above code Two or more lines ended with \ will be joined, for example, aa\ a become , aaa --

Re: [PHP] what does $$ mean?

2001-03-05 Thread Stephan Ahonen
An example of $$variables: ?php $smelly = "ditto"; $ditto = "wimpymeat"; $wimpymeat = "smelly"; $foo = "smelly"; for ($i=1;$i6;$i++) { $foo = $$foo; echo $$foo . "\n"; } ? Returns: wimpymeat smelly ditto wimpymeat smelly Now, why anyone would want to write a script that returns words like

[PHP] what does $$ mean?

2001-03-04 Thread Ed Lazor
I'm studying some code from the net and was kinda curious. There are places where it references variables like this: $$testvar What's the difference between that and $testvar ? -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] what does $$ mean?

2001-03-04 Thread Jason Murray
I'm studying some code from the net and was kinda curious. There are places where it references variables like this: $$testvar What's the difference between that and $testvar ? $testvar means "the value of the variable named 'testvar'". $$testvar means "the value of

Re: [PHP] what does $$ mean?

2001-03-04 Thread Philip Olson
Check out : http://php.net/manual/en/language.variables.variable.php Example : $a = 'hi'; $$a = 'sup'; $hi now equals 'sup' Regards, Philip Olson http://www.cornado.com/ On Sun, 4 Mar 2001, Ed Lazor wrote: I'm studying some code from the net and was kinda curious. There