CPT John W. Holmes wrote:
Well, the first part is out your butt... :)
Yep. I tested it after making the assumption, sure enough I was WRONG.
I've got to keep my butt under control, it's getting a little out of hand.
To the OP, sorry 'bout that.
Erik
--
PHP General Mailing List (http://www
> > If you had a constant named "somefile" or "php" and you use the second
> > syntax, the constant would be interpolated/evaluated to the value of the
> > constant.
> >
> > Generally I always use single quoted strings unless there's some need
> > for double-quoted strings (like if I want to embed
Erik Price wrote:
BTW, I'm talking out my butt here.
I was wondering what that smell was. :o
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Erik Price wrote:
If you had a constant named "somefile" or "php" and you use the second
syntax, the constant would be interpolated/evaluated to the value of the
constant.
Generally I always use single quoted strings unless there's some need
for double-quoted strings (like if I want to embed
Charles Kline wrote:
What is the difference as in... why one or the other?
include('somefile.php');
include("somefile.php");
Just wondering...
If you had a constant named "somefile" or "php" and you use the second
syntax, the constant would be interpolated/evaluated to the value of the
const
- Original Message -
From: "Charles Kline" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 17, 2003 11:57 AM
Subject: [PHP] What is the difference: include()
> What is the difference as in... why one or the other?
>
> include('somef
> What is the difference as in... why one or the other?
>
> include('somefile.php');
>
> include("somefile.php");
>
> Just wondering...
No difference as far as include() goes.
Read the manual on strings to see how PHP treats strings in single and
double quotes differently.
---John Holmes...
--
perfect. thanks for the explanation.
cheers,
charles
On Monday, March 17, 2003, at 02:01 PM, Pete James wrote:
Only that you can embed vars in the second one.
if $foo='bar';
include('somefile_{$foo}');
will include the file 'somefile{$foo}', where
include("somefile_{$foo}");
will include the fi
Only that you can embed vars in the second one.
if $foo='bar';
include('somefile_{$foo}');
will include the file 'somefile{$foo}', where
include("somefile_{$foo}");
will include the file 'somefile_bar'
HTH.
Charles Kline wrote:
What is the difference as in... why one or the other?
include('some
What is the difference as in... why one or the other?
include('somefile.php');
include("somefile.php");
Just wondering...
- ck
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
10 matches
Mail list logo