$qrCode->toSvg()
Returns the QR code as <svg> element
$qrCode->toSvg(int|string|null $size = null, string $color = '#000000', string $back = '#ffffff', int $border = 4): stringParameters
| Name | Type | Default | Description | 
|---|---|---|---|
| $size | intorstringornull | null | Optional CSS width of the <svg>element | 
| $color | string | '#000000' | Foreground color in hex format | 
| $back | string | '#ffffff' | Background color in hex format | 
| $border | int | 4 | Border size in number of modules | 
Return type
string
This method modifies the existing $qrcode object it is applied to and returns it again.