Scopus
in package
Helpers for Scopus CSV import example.
Tags
Table of Contents
- splitNames() : array<string|int, string>
- Given a string of multiple last name/initial pairs, split it into an array of name strings.
- isNameAbbreviation() : bool
- Is the provided text the abbreviation part of a name string?
Methods
splitNames()
Given a string of multiple last name/initial pairs, split it into an array of name strings.
public
static splitNames(string $names[, bool $firstOnly = false ]) : array<string|int, string>
Parameters
- $names : string
-
Names to split
- $firstOnly : bool = false
-
Set to true to return just the first extracted value
Return values
array<string|int, string> —isNameAbbreviation()
Is the provided text the abbreviation part of a name string?
protected
static isNameAbbreviation(string $text) : bool
Parameters
- $text : string
-
Text to check