You are here

public function ExifPHPExtension::startswith in Exif 7

Same name and namespace in other branches
  1. 8.2 src/ExifPHPExtension.php \Drupal\exif\ExifPHPExtension::startswith()
  2. 8 src/ExifPHPExtension.php \Drupal\exif\ExifPHPExtension::startswith()
1 call to ExifPHPExtension::startswith()
ExifPHPExtension::_reformat in ./ExifPHPExtension.php
Helper function to reformat fields where required.

File

./ExifPHPExtension.php, line 190

Class

ExifPHPExtension

Namespace

Drupal\exif

Code

public function startswith($hay, $needle) {
  return substr($hay, 0, strlen($needle)) === $needle;
}