Determine whether a given string starts with a another string.

Parameters

string $haystack: The source string to search.

string $needle: The string to search for.

Return value

bool Whether the haystack starts with the requested needle.

2 calls to strstartswith()
ExifPHPExtension::_reformat in ./ExifPHPExtension.php
Helper function to reformat fields where required.
exif_admin_settings in ./exif.admin.inc
Just some help page. Gives you an overview over the available tags.

File

./exif.module, line 921

Code

function strstartswith($haystack, $needle) {
    return substr($haystack, 0, strlen($needle)) === $needle;
}