From 5aa90b9343005f027f22fe3a90748f6b4651b48b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Przemys=C5=82aw=20Pluta?= Date: Thu, 2 Apr 2020 09:15:09 +0200 Subject: [PATCH] Updated smnp.io (markdown) --- smnp.io.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/smnp.io.md b/smnp.io.md index b8340be..246cb06 100644 --- a/smnp.io.md +++ b/smnp.io.md @@ -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 + "!");