stristr php 1

stristr php

#Case-insensitive strstr()
#stristr(string $haystack, string $needle, bool $before_needle = false): string|false
#Returns all of haystack starting from and including the first occurrence of needle to the end.

Here is what the above code is Doing:
1. The first echo statement outputs
2. The second echo statement outputs US.

#strpbrk(string $haystack, string $char_list): string|false
#Searches haystack for any of the characters in char_list.

Similar Posts