Updated smnp.io (markdown)

Bartłomiej Przemysław Pluta
2020-04-02 09:15:09 +02:00
parent 00dbc1c052
commit 5aa90b9343

@@ -1,12 +1,12 @@
# Functions
## print
```
```php
print(...items)
```
Prints the string representation of given items to standard output.
#### Example
```
```php
print("a");
print("b");
print("c");
@@ -16,13 +16,13 @@ print("c");
```
## println
```
```php
println(...items)
```
The same as `print(...)` however ends each line new line character (`\n`).
#### Example
```
```php
println("a");
println("b");
println("c");
@@ -34,13 +34,13 @@ println("c");
```
## read
```
```php
read(prompt: string = "")
```
Reads an input from user as a string. The optional parameter is the prompt displayed on the standard output.
#### Example
```
```php
name = read("Provide your name: ");
println("Hello, " + name + "!");