This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Parse yandex SMS | |
* | |
* @param string $msg | |
* @return array | |
*/ | |
function parseYandexSMS(string $msg): array | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# enter your function code here | |
function ENGLISH_CALC { | |
case $2 in | |
"plus") echo "$1 + $3 = $(($1 + $3))";; | |
"minus") echo "$1 - $3 = $(($1 - $3))";; | |
"times") echo "$1 * $3 = $(($1 * $3))";; | |
esac | |
} |