Re: [PHP] The Context of 0

2007-10-02 Thread Carlton Whitehead
ica/New_York Subject: [PHP] The Context of 0 [small rant] This morning's thread on strpos() brings up an interesting point, zero has a context. In certain cases 0 is the equivalent of FALSE and in other cases a 0 is just a 0. In the context of strpos() 0 indicates that the needle is in the fir

Re: [PHP] The Context of 0

2007-10-02 Thread Robert Cummings
On Tue, 2007-10-02 at 12:14 -0500, Jay Blanchard wrote: > [small rant] > This morning's thread on strpos() brings up an interesting point, zero > has a context. > > In certain cases 0 is the equivalent of FALSE and in other cases a 0 is > just a 0. In the context of strpos() 0 indicates that the n

[PHP] The Context of 0

2007-10-02 Thread Jay Blanchard
[small rant] This morning's thread on strpos() brings up an interesting point, zero has a context. In certain cases 0 is the equivalent of FALSE and in other cases a 0 is just a 0. In the context of strpos() 0 indicates that the needle is in the first position of the haystack. If the needle is not