note 97424 modified in function.strncmp by danbrown

From: Date: Mon, 19 Apr 2010 14:02:57 +0000
Subject: note 97424 modified in function.strncmp by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-168400@lists.php.net to get a copy of this message
if length is 0 regardless what the two strings are, it will return 0 <?php strncmp("xybc","a3234",0); // 0 strncmp("blah123","hohoho", 0); //0 ?> --was-- if length is 0 regardless what the two strings are, it will return 0 strncmp("xybc","a3234",0); // 0 strncmp("blah123","hohoho", 0); //0 http://php.net/manual/en/function.strncmp.php

« previous php.notes (#168400) next »