Return true if the ending quote of the string is escaped.
public static escapedEnd ( string $quotedString ) : boolean | ||
$quotedString | string | |
리턴 | boolean |
protected function parseString(&$states, &$key, &$val, &$quote, $char) { if (($char === '"' || $char === "'") && !CommonUtils::escapedEnd($val)) { $stringParser = new StringAttribute($char); $stringParser->parse($states, $val, $quote); return; } ${in_array($states->current(), array('key', 'key char')) ? 'key' : 'val'} .= $char; }