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 + "!");