why this code below return false ?
strstr('/example/test', 'example/test/next');
The second parameter contains a good portion of the first parameter ???
why this code below return false ?
strstr('/example/test', 'example/test/next');
The second parameter contains a good portion of the first parameter ???
Wrong order of parameters... strstr('yourstring', 'searchstring') strstr
strstr('/example/test', 'example/test/next');
Cahge to
strstr('example/test/next', '/example/test');
--> it will return false too. bacause 'example/test/next'
has NO '/'
at the begin..
strstr('/example/test/next', '/example/test');
--> will return '/example/test/next'