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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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?:
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
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?:
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. :(
--
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
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
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
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
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
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
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,
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,
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
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
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
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
--
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
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
[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
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
--
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
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
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
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
38 matches
Mail list logo