You are here

private function ExifPHPExtension::checkKeywordString in Exif 8.2

Same name and namespace in other branches
  1. 8 src/ExifPHPExtension.php \Drupal\exif\ExifPHPExtension::checkKeywordString()

Helper function to split keyword separated by ';' in array of keywords.

Parameters

string $keyword: String with all keywords.

Return value

array the array of keywords.

1 call to ExifPHPExtension::checkKeywordString()
ExifPHPExtension::readIptcTags in src/ExifPHPExtension.php
Read IPTC Information from a file.

File

src/ExifPHPExtension.php, line 326

Class

ExifPHPExtension
Class ExifPHPExtension Parser implementation base d on PHP Exif extension.

Namespace

Drupal\exif

Code

private function checkKeywordString($keyword) {
  return strpos($keyword[0], ';') !== FALSE ? explode(';', $keyword[0]) : $keyword;
}