CodeExplorer parseTag example
public static function parse(string
$value = null, int
$flags = 0, array &
$references =
[]): mixed
{ self::
initialize($flags);
$value =
trim($value);
if ('' ===
$value) { return '';
} $i = 0;
$tag = self::
parseTag($value,
$i,
$flags);
switch ($value[$i]) { case '[':
$result = self::
parseSequence($value,
$flags,
$i,
$references);
++
$i;
break;
case '{':
$result = self::
parseMapping($value,
$flags,
$i,
$references);
++
$i;
break;
default:
$result = self::
parseScalar($value,
$flags, null,
$i, true,
$references);
} public static function parse(string
$value = null, int
$flags = 0, array &
$references =
[]): mixed
{ self::
initialize($flags);
$value =
trim($value);
if ('' ===
$value) { return '';
} $i = 0;
$tag = self::
parseTag($value,
$i,
$flags);
switch ($value[$i]) { case '[':
$result = self::
parseSequence($value,
$flags,
$i,
$references);
++
$i;
break;
case '{':
$result = self::
parseMapping($value,
$flags,
$i,
$references);
++
$i;
break;
default:
$result = self::
parseScalar($value,
$flags, null,
$i, true,
$references);
}