[PHP] Feature request for print_r() and var_dump()

2005-01-15 Thread Daevid Vincent
I suggest a slight but useful change to these two functions, or possibly an
alternate parameter.

I find myself always having to do this annoyance:

echo BmyDevice/BBR;
print_r($myDevice);

To get:

myDevice
Array
(
[] = Array
(
[range] = range_3
[scanner] = scanner_3
[record] = record_3
)

[] = Array
(
[range] = range_4
[scanner] = scanner_4
[record] = record_4
)
)

It seems to me the functions should just print out the name of the array
you're looking at, at the very top, just as it prints out the keys. I
already know it's an Array or I wouldn't be print_r()'ing it. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Feature or Bug: Omission of closing PHP tag...

2003-11-17 Thread Becoming Digital
I'm guessing we don't have to include a '?' anymore?  Not sure I like that idea...

Edward Dudlik
Those who say it cannot be done
should not interrupt the person doing it.

wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU



- Original Message - 
From: Robert Cummings [EMAIL PROTECTED]
To: PHP-General [EMAIL PROTECTED]
Sent: Sunday, 16 November, 2003 03:11
Subject: [PHP] Feature or Bug: Omission of closing PHP tag...


The word from internals is that this is a feature.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Feature or Bug: Omission of closing PHP tag...

2003-11-17 Thread Robert Cummings
On Mon, 2003-11-17 at 03:32, Becoming Digital wrote:
 I'm guessing we don't have to include a '?' anymore?  Not sure I like that idea...

It's optional, so you can feel free to include it if it makes you happy.
But from a library standpoint, it's generally just a hassle to include
it and then pray you didn't have some whitespace following. IMHO the
code is cleaner if it has no HTML content (unless via print or echo) and
you don't include the closing tag.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Feature or Bug: Omission of closing PHP tag...

2003-11-17 Thread Becoming Digital
 from a library standpoint, it's generally just a hassle to include
 it and then pray you didn't have some whitespace following. 

I hadn't thought of it that way.  I run everything through a code cleaner to prevent 
just that, but it might be nice to stop doing so.

 code is cleaner if it has no HTML content (unless via print or echo) and
 you don't include the closing tag.

For small blocks of HTML, I'm inclined to agree.  I still prefer that large blocks be 
printed plainly, both from an editing and (slight) performance standpoint, but I see 
where you're coming from.

Edward Dudlik
Those who say it cannot be done
should not interrupt the person doing it.

wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU



- Original Message - 
From: Robert Cummings [EMAIL PROTECTED]
To: Becoming Digital [EMAIL PROTECTED]
Cc: PHP-General [EMAIL PROTECTED]
Sent: Monday, 17 November, 2003 03:42
Subject: Re: [PHP] Feature or Bug: Omission of closing PHP tag...


On Mon, 2003-11-17 at 03:32, Becoming Digital wrote:
 I'm guessing we don't have to include a '?' anymore?  Not sure I like that idea...

It's optional, so you can feel free to include it if it makes you happy.
But from a library standpoint, it's generally just a hassle to include
it and then pray you didn't have some whitespace following. IMHO the
code is cleaner if it has no HTML content (unless via print or echo) and
you don't include the closing tag.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Feature or Bug: Omission of closing PHP tag...

2003-11-16 Thread Robert Cummings
The word from internals is that this is a feature.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Feature requests for PHP development - where to post them?

2002-01-29 Thread Stefan Rusterholz

Is there a place especially meant to make feature-requests to the
php-development team?

TIA
stefan rusterholz


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Feature requests for PHP development - where to post them?

2002-01-29 Thread Lars Torben Wilson

On Tue, 2002-01-29 at 06:53, Stefan Rusterholz wrote:
 Is there a place especially meant to make feature-requests to the
 php-development team?
 
 TIA
 stefan rusterholz

http://bugs.php.net

Select 'Feature/Change Request' as the bug type.


Cheers,

Torben

-- 
 Torben Wilson [EMAIL PROTECTED]
 http://www.thebuttlesschaps.com
 http://www.hybrid17.com
 http://www.inflatableeye.com
 +1.604.709.0506


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Feature Suggestion

2002-01-17 Thread Mike Eheler

If this is the wrong place for it, please point me to the right place. 
This is real small, though.. I'd like to see a shorthand for defining 
arrays.. for example

$ucase_alphabet = array(['A'..'Z']); (creates an array of all alphabet 
characters, uppercase)
$numeric = array([1..100]);

Or something of that sort. Just something that popped into my mind. PHP 
feels like a language that has been built on little suggestions like 
this, so I thought I'd post it. :)

Mike


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] feature sugestion

2001-10-28 Thread Ray Todd Stevens

A lot of visually based editors support embeded java scripts.  This 
can easily be used to make the system support php with one 
problem.  Most of these system use the concept that these scripts 
ignore html comments to help them ignore the code.  How about 
making the php engine ignore these to.  That is any string like !-- 
or //-- is treated as white space.

Ray Todd Stevens Specialists in Network and Security 
Consulting
Senior ConsultantSoftware audit service available
Stevens Services
Suite 21
3754 Old State Rd 37 N
Bedford, IN 47421
(812) 279-9394
[EMAIL PROTECTED]

Thought for the day:
Communist (n): one who has given up all hope
of becoming a Capitalist.


For PGP public key send message with subject 
please send PGP key

If this message refers to an attachment the attachment
may arrive as a seperate mail message depending on the
type of mail client and gateway software you are using.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] feature sugestion

2001-10-28 Thread Kurt Lieber

On Sunday 28 October 2001 06:10 pm, Ray Todd Stevens wrote:
 How about
 making the php engine ignore these to.  That is any string like !--
 or //-- is treated as white space.

Um...maybe I don't understand your statement but php already has commenting 
built in.  Anything between /* and */ is ignored by the scripting engine.  
(just like !-- and -- in HTML)

--kurt

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Feature?

2001-09-26 Thread php

On Tue, 25 Sep 2001 09:36:57 -0500, you wrote:

 ?php
 function foo($p) {  echo  $p['fred'] . $p['banana']; }
 foo(array('fred' = 'hello', 'banana' = 'world'));
 ?

 Yeap, I know that. I thought about this bit of hack but this breaks the 
 conception on giving parameters. Also this trick cannot
 solve the problem with default parameters. If I have function with 5 
 params and all of them have default values and I want to pass
 value only to the second parameter what I have to do?

Maybe this? A bit verbose, but functional.
?php
function foo($p)
{
   if (empty($p['fred']))
 $p['fred'] = 'hello'; // same for banana
   echo  $p['fred'] . $p['banana'];
}
foo(array('fred' = 'hello', 'banana' = 'world'));
?
steve

I'm not keen on adding lots of multi-line if statements - I prefer tp
put things into arrays where I can.  Easier to update them.

?php
function foo($p)
{
$foodefault = array(// prefix matching the name in 'extract'
'foo_fred'= 'strongdefault fred/strong',
'foo_banana' = 'strongdefault bananananana/strong',
);
extract ($p, EXTR_PREFIX_ALL, 'foo');   // get params
extract ($foodefault, EXTR_SKIP, foo);// get defaults
echo  $foo_fred / $foo_banana;
}
echo Both in place: ;
foo(array('fred' = 'hello', 'banana' = 'world'));
echo br / Now with a missing param: ;
foo(array('fred' = 'hello'));
echo br / Now both missing params: ;
foo(array());
?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Fw: [PHP] Feature?

2001-09-26 Thread Andrey Hristov

 Let this be last message in the thread. Thanks for the examples! I'll wait for PHP5. 
There is a possibility that this feature will
be in.

 Have fun

 Andrey Hristov
 IcyGEN Corporation
 http://www.icygen.com
 BALANCED SOLUTIONS

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, September 26, 2001 2:42 PM
 Subject: Re: [PHP] Feature?


  On Tue, 25 Sep 2001 09:36:57 -0500, you wrote:
 
   ?php
   function foo($p) { echo  $p['fred'] . $p['banana']; }
   foo(array('fred' = 'hello', 'banana' = 'world'));
   ?
 
   Yeap, I know that. I thought about this bit of hack but this breaks the
   conception on giving parameters. Also this trick cannot
   solve the problem with default parameters. If I have function with 5
   params and all of them have default values and I want to pass
   value only to the second parameter what I have to do?
 
  Maybe this? A bit verbose, but functional.
  ?php
  function foo($p)
  {
 if (empty($p['fred']))
   $p['fred'] = 'hello'; // same for banana
 echo  $p['fred'] . $p['banana'];
  }
  foo(array('fred' = 'hello', 'banana' = 'world'));
  ?
  steve
 
  I'm not keen on adding lots of multi-line if statements - I prefer tp
  put things into arrays where I can.  Easier to update them.
 
  ?php
  function foo($p)
  {
  $foodefault = array( // prefix matching the name in 'extract'
  'foo_fred'= 'strongdefault fred/strong',
  'foo_banana' = 'strongdefault bananananana/strong',
  );
  extract ($p, EXTR_PREFIX_ALL, 'foo'); // get params
  extract ($foodefault, EXTR_SKIP, foo); // get defaults
  echo  $foo_fred / $foo_banana;
  }
  echo Both in place: ;
  foo(array('fred' = 'hello', 'banana' = 'world'));
  echo br / Now with a missing param: ;
  foo(array('fred' = 'hello'));
  echo br / Now both missing params: ;
  foo(array());
  ?
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Feature?

2001-09-26 Thread Alister

Follow up to my own message:

If you want to also skip even needing the empty 'array()' (new fianl
example) - check if it is an array, and only do the first extract of
the parameters if there's something there.

?php
function foo($p='')
{
$foodefault = array(
'foo_fred'= 'strongdefault fred/strong',
'foo_banana' = 'strongdefault bananananana/strong',
);
if (is_array($p))
extract ($p, EXTR_PREFIX_ALL, 'foo');   // get values
extract ($foodefault, EXTR_SKIP, foo);// get defaults
echo  $foo_fred / $foo_banana;
}

echo Both in place: ;
foo(array('fred' = 'hello', 'banana' = 'world'));
echo br / Now with a missing param: ;
foo(array('fred' = 'hello'));
echo br / Now both missing params: ;
foo(array());
echo br / and with no array: ;
foo();
?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Feature?

2001-09-25 Thread Andrey Hristov

 After some days spent in a hospital reading Programming Perl and Oracle Web 
Applications I found that a language construct
which appears in Perl and PL/SQL is not available in PHP.
As in most 3G languages function call is like that
$bar=foo($bar1,$bar2,$bar3,'bar4');

function foo($par1=1,$par2=2,$par3=3,$par4='foo_bar',...){
...
}
In the case when I've few parameters I've to remember their order, so why not
$bar=foo('par2'=10);
I want to pass value to only one or more but not to all params. Also this will make 
the code clearer I think.
Comments are welcome!

Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Feature?

2001-09-25 Thread Eugene Lee

On Tue, Sep 25, 2001 at 11:36:25AM +0300, Andrey Hristov wrote:
: 
:  After some days spent in a hospital reading Programming Perl and
: Oracle Web Applications I found that a language construct which
: appears in Perl and PL/SQL is not available in PHP.
: As in most 3G languages function call is like that
: $bar=foo($bar1,$bar2,$bar3,'bar4');
: 
: function foo($par1=1,$par2=2,$par3=3,$par4='foo_bar',...){
: ...
: }
: In the case when I've few parameters I've to remember their order, so why not
: $bar=foo('par2'=10);
: I want to pass value to only one or more but not to all params. Also
: this will make the code clearer I think.

AFAIK, Perl doesn't support named parameters (it's listed for Perl 6).
Since C does not support this, almost all C-like languages also do not
support this.  The only exception I know of is Objective-C, which is the
base language for Apple's new Unix-based Mac OS X.

As for PHP supporting named parameters, it seems silly to preserve C's
use of parentheses.  Why not do something more radical like Objective-C
that draws from Smalltalk syntax:

$bar = [foo par2:10]


-- 
Eugene Lee
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Feature?

2001-09-25 Thread Andrey Hristov

Yeap, I know that. I thought about this bit of hack but this breaks the conception on 
giving parameters. Also this trick cannot
solve the problem with default parameters. If I have function with 5 params and all of 
them have default values and I want to pass
value only to the second parameter what I have to do?

Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS


- Original Message -
From: [EMAIL PROTECTED]
To: Andrey Hristov [EMAIL PROTECTED]
Sent: Tuesday, September 25, 2001 1:14 PM
Subject: Re: [PHP] Feature?


 On Tue, 25 Sep 2001 11:36:25 +0300, you wrote:

 In the case when I've few parameters I've to remember their order, so why not
 $bar=foo('par2'=10);
 I want to pass value to only one or more but not to all params.
 Also this will make the code clearer I think.
 Comments are welcome!

 ?php

 function foo($p)
 {
   echo  $p['fred'] . $p['banana'];
 }

 foo(array('fred' = 'hello', 'banana' = 'world'));

 ?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Feature?

2001-09-25 Thread Christian Reiniger

On Tuesday 25 September 2001 10:36, Andrey Hristov wrote:
  After some days spent in a hospital reading Programming Perl and
 Oracle Web Applications I found that a language construct which
 appears in Perl and PL/SQL is not available in PHP.
 As in most 3G languages function call is like that
 $bar=foo($bar1,$bar2,$bar3,'bar4');

 function foo($par1=1,$par2=2,$par3=3,$par4='foo_bar',...){
 ...
 }
 In the case when I've few parameters I've to remember their order, so
 why not $bar=foo('par2'=10);
 I want to pass value to only one or more but not to all params. Also
 this will make the code clearer I think. Comments are welcome!

You can emulate this with arrays:
$bar = foo (array ('par2' = 10));

-- 
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)

...1000100011010101101010110100111010113...

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Feature?

2001-09-25 Thread Steve Cayford

Maybe this? A bit verbose, but functional.

-Steve

?php

function foo($p)
{
   if (empty($p['fred'])){
 $p['fred'] = 'hello';
   }
   if (empty($p['banana'])){
 $p['banana'] = 'world';
   }
   echo  $p['fred'] . $p['banana'];
}

foo(array('fred' = 'hello', 'banana' = 'world'));

?

On Tuesday, September 25, 2001, at 06:25  AM, Andrey Hristov wrote:

 Yeap, I know that. I thought about this bit of hack but this breaks the 
 conception on giving parameters. Also this trick cannot
 solve the problem with default parameters. If I have function with 5 
 params and all of them have default values and I want to pass
 value only to the second parameter what I have to do?

 Andrey Hristov
 IcyGEN Corporation
 http://www.icygen.com
 BALANCED SOLUTIONS


 - Original Message -
 From: [EMAIL PROTECTED]
 To: Andrey Hristov [EMAIL PROTECTED]
 Sent: Tuesday, September 25, 2001 1:14 PM
 Subject: Re: [PHP] Feature?


 On Tue, 25 Sep 2001 11:36:25 +0300, you wrote:

 In the case when I've few parameters I've to remember their order, so 
 why not
 $bar=foo('par2'=10);
 I want to pass value to only one or more but not to all params.
 Also this will make the code clearer I think.
 Comments are welcome!

 ?php

 function foo($p)
 {
   echo  $p['fred'] . $p['banana'];
 }

 foo(array('fred' = 'hello', 'banana' = 'world'));

 ?



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Feature?

2001-09-25 Thread Brian White

Actually this is a feature of Python. It is VERY useful and I would be
ecstatic if it turned up in PHP.

Regs

Brian White

At 11:36 25/09/2001 +0300, Andrey Hristov wrote:
  After some days spent in a hospital reading Programming Perl and 
 Oracle Web Applications I found that a language construct
which appears in Perl and PL/SQL is not available in PHP.
As in most 3G languages function call is like that
$bar=foo($bar1,$bar2,$bar3,'bar4');

function foo($par1=1,$par2=2,$par3=3,$par4='foo_bar',...){
...
}
In the case when I've few parameters I've to remember their order, so why not
$bar=foo('par2'=10);
I want to pass value to only one or more but not to all params. Also this 
will make the code clearer I think.
Comments are welcome!

Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-
Brian White
Step Two Designs Pty Ltd - SGML, XML  HTML Consultancy
Phone: +612-93197901
Web:   http://www.steptwo.com.au/
Email: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] feature that should be there and isn't

2001-01-30 Thread Joe Stump

in php to have a "optional" parameter in a function you can do:

  function foo($var='')
  {


  }

To have it be default to 'bar' you can do:

  function foo($var='bar')
  {


  }

BUT you can't do this:

  function foo($var=date("Y-m-d"))
  {


  }

Why? This would be a kick ass little trick!

--Joe



-- 

---
Joe Stump, PHP Hacker, [EMAIL PROTECTED] -o)
http://www.miester.org http://www.care2.com /\\
"It's not enough to succeed. Everyone else must fail" -- Larry Ellison _\_V
---


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] feature that should be there and isn't

2001-01-30 Thread Jason Murray

 BUT you can't do this:
 
   function foo($var=date("Y-m-d"))
   {
 
 
   }

But, you can do

function foo($var='defaultvaluethatwillneverhappen')
{
  if ($var == 'defaultvaluethatwillneverhappen')
  { $var = date("Y-m-d"); }
}

 Why? This would be a kick ass little trick!

Mmmm, well ... *shrug* handball.rasmus :)

Jason

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] feature that should be there and isn't

2001-01-30 Thread Brian White

Let me start by saying "Can of Worms!"
At 20:07 30/01/2001 -0800, Joe Stump wrote:

BUT you can't do this:

   function foo($var=date("Y-m-d"))
   {


   }

Why? This would be a kick ass little trick!


The question is: when do you resolves something like this?
Is it at "compile time" or at "function call" time. That could
get really nasty if the functions had internal counters etc.

Regs

Brian White
-
Brian White
Step Two Designs Pty Ltd - SGML, XML  HTML Consultancy
Phone: +612-93197901
Web:   http://www.steptwo.com.au/
Email: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]