php string function which is case-insensitive string comparison,
see[1].
That was not -1 and 3, though. It returns -13.
[1] http://php.net/manual/en/function.strcasecmp.php
On Sat, Mar 27, 2010 at 11:40 PM, adam k <akobrin@adamkobrin.com> wrote:
> I'm new to PHP...
>
> I expect this to return -1.
>
> But, why does this:
>
> echo strcasecmp("First","Second");
>
> return this?:
>
> -1 3
>
> What's up with the 3?
--
regards,
gedex
blog: http://gedex.web.id
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
No comments:
Post a Comment