# copy_until_char (protected)

```php
copy_until ( string $char ) : string
```

Copies all characters starting at the current parsing position in the document. Sets the parsing position to the first character that matches the provided character.

| Parameter | Description
| --------- | -----------
| `char`    | A character to stop copying at.

Returns the copied characters.