function mb_strrev($str){
$r = '';
for ($i = mb_strlen($str); $i>=0; $i--) {
$r .= mb_substr($str, $i, 1);
}
return $r;
}
echo mb_strrev("☆❤world"); // echo "dlrow❤☆"
package main
import (
"encoding/json"
"fmt"
)
type Students struct {
Rating []int
}
type myStruct struct {
Students []Students
}
func main() {
data := []byte(`{
"ID":134,
"Number":"ИЛМ-1274",
"Year":2,
"Students":[
{
"LastName":"Вещий",
"FirstName":"Лифон",
"MiddleName":"Вениаминович",
"Birthday":"4апреля1970года",
"Address":"632432,г.Тобольск,ул.Киевская,дом6,квартира23",
"Phone":"+7(948)709-47-24",
"Rating":[1,2,3]
}
]}`)
var m myStruct
if err := json.Unmarshal(data, &m); err != nil {
fmt.Println(err)
return
}
fmt.Println(m.Students)
for _, student := range m.Students {
fmt.Println(student.Rating)
}
}
myFunc;на
myFunc();и вызывать вот так:
initCar(function(){
findBulletInDoor('left');
});
if(file_exists('development')){
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
$yii = dirname(__FILE__) . '/../../yii/framework/yii.php';
$config = dirname(__FILE__) . '/protected/config/dev.php';
}else{
defined('YII_DEBUG') or define('YII_DEBUG', false);
$yii = dirname(__FILE__) . '/../../../yii/framework/yiilite.php';
$config = dirname(__FILE__) . '/protected/config/production.php';
}
$(function() {
$('._blank a').click(function() {
if(event.button == 1) window.open(this.href);
return false;
});
});