60 results found
Posted on November 25, 2016


The Str::startsWith function determines if the given string begins with the given value.

The second parameter can be a string or an array of strings. If it is a string the method returns true or false accordingly by checking in a case-sensitive manner. In case we pass an array of strings then the method returns true as long as one of the strings is the correct one.

Read more