I?ve also thought about this and think there should be funciton wich returns
the contents of a file as a string. Especially since implode("",
file($filename)) is or is at least said to be much slower than;
$content = fread(fopen($filename, 'r'), filesize($filename));
-Marten.
-Original
Is there a need for nested funcitons? I don?t think so.
-Marten.
Icq# 38863127
-Original Message-
From: Andrei Zmievski [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 3:22 PM
To: Hartmut Holzgraefe
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DEV] nested functions
On Fri,
-Original Message-
From: Stanislav Malyshev [mailto:[EMAIL PROTECTED]]
Sent: 26 February 2001 09:52
To: Hartmut Holzgraefe
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-QA] Re: [PHP-DEV] ctype function (re?)naming
HH RFC: what should their names be in 4.0.5?
?php
function my_func($a)
{
echo 'a';
}
my_func();
?
The above code snippet will result in "a" being printed, is there a reason
why functions execute even when arguments are omitted?
-Marten.
Icq# 38863127
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail:
Blah... I see this a lot. We should probably just relent and make a
function that reads an entire file into a string.
Yes, please do :)
Regards,
Marten.
ps.
This has been requested in #5008, #7213 and #8882.
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail:
I think the current behaviour is fine. The user defined error handler should get
silenced errors as well, then it?s up to the developer to decide wether to ignore them
or not.
Marten.
-Original Message-
From: Zeev Suraski [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 31, 2002