strcmp
#7

Quote:
Originally Posted by Freaksken
Посмотреть сообщение
That's not what he means. He means this note from the wiki:
His other reply touched PHP.
Quote:
Originally Posted by Bussyman
Посмотреть сообщение
I know but i talk about php strcmp if i compare empty string with non empty it return that it matches or no? is there same bug as in samp strcmp ?
Whether PHP strcmp function has the same issue that SAMP's strcmp has (the one you mentioned)

In terms of PHP, strcmp will return 0 (match)
(tested it before I replied)


EDIT:
Must also note that
PHP код:
echo strcmp("","bug"); // -3 
PHP код:
echo strcmp("bug",""); // 3 
Reply


Messages In This Thread
strcmp - by Bussyman - 02.07.2017, 10:16
Re: strcmp - by Freaksken - 02.07.2017, 10:44
Re: strcmp - by Bussyman - 10.07.2017, 07:35
Re: strcmp - by Freaksken - 10.07.2017, 18:51
Re: strcmp - by Kaperstone - 10.07.2017, 19:00
Re: strcmp - by Freaksken - 10.07.2017, 19:06
Re: strcmp - by Kaperstone - 10.07.2017, 19:52
Re: strcmp - by Freaksken - 10.07.2017, 20:26

Forum Jump:


Users browsing this thread: 1 Guest(s)