What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-09-07 11:16:02
php why "\n" not new line
<?php echo "If you view the page source \r\n you will find a newline in this string."; echo "<br>"; echo nl2br("You will find the \n newlines in this string \r\n on the browser window."); ?> // 2 Way <?php ... Add solution -
Shell/Bash 2021-09-07 01:23:01
grep and
# EXAMPLE: displays any lines that contain either "include this string" or "this works too" egrep "include this string|this works too" * # SYNTAX: # egrep "<pattern-1>|<pattern-2>" * # egrep is combin... Add solution -
Go 2021-09-06 05:59:02
go functions
// a simple function func functionName() {} // function with parameters (again, types go after identifiers) func functionName(param1 string, param2 int) {} // multiple parameters of the same type func functionName(param1, param2 int) {} // return type ... Add solution