At 2005-06-10 22:37, Marcus Boerger wrote:
>Friday, June 10, 2005, 10:01:10 AM, you wrote:
>> NULL comes from C I think and stands for an uninitialized
>> pointer. There is no other way to empty a pointer except
>> by using 'pointer=(*char)0;', using NULL is more clear.
>
>you shall never cast 0 to
At 2005-06-06 08:37, Marcus Boerger wrote:
>Sunday, June 5, 2005, 10:27:51 PM, you wrote:
>> On Sun, 5 Jun 2005, Johannes Schlueter wrote:
>>> PHP is a weak-typed language which casts in the background as required - at
>>> least most of the time.
Yes, but I think it doesn't always do it in an
intu
At 2003-11-05 09:59 +0100, Michael Walter wrote:
>Very cool.
>
>How about supporting .. syntax, btw. as in [1..3] or ["a".."z"]? Might no be the
>worth, just thinking out loud ;)
I'm also in favor of a shorter notation for array() and list().
In fact this also helps to ease the problem I have
wi
At 2003-10-19 13:38 +0100, Wez Furlong wrote:
>> It wouldn't surprise me when the foreach syntax would be
>> deprecated soon...
>
>If you're trying to humourous, I suggest that you first earn
>some karma by contributing some real code to the PHP project.
>
>Your suggestion will not be implemented b
Hi all,
I'd like to propose an alternative for the foreach statement.
Of course the construct:
while (list($i,$d)=each($A))
is much harder to read than:
foreach ($A as $i=>$d)
and although I had doubts at first I'm currently rewriting
all my old scripts to the new format whenever I encounter