If ‘start’ is negative and greater than the length of the string, PHP seems to return the first ‘length’ characters of the string. For example, substr(‘test’,-10,1) returns ‘t’.
(здесь)
If ‘start’ is negative and greater than the length of the string, PHP seems to return the first ‘length’ characters of the string. For example, substr(‘test’,-10,1) returns ‘t’.
(здесь)