思路决定出路,行动决定结果。按照计划一步一步来,就不担心。

PHP之utf16转utf8编码

<?php

function utf16_to_utf8($str) {
$c0 = ord($str[0]);
$c1 = ord($str[1]);

if ($c0 == 0xFE && $c1 == 0xFF) {
$be = true;
} else if ($c0 == 0xFF && $c1 == 0xFE) {

kohana orm

To create a new Model_User instance, you can do one of two things:

<?php
$user
= ORM::factory('user');
// Or
$user = new Model_User();
?>

Inserting

kohana include view

Views Within Viewslink to this

kohana笔记——Controllers

Property/method What it does
$this->request->route() The Route that matched the current request url
$this->request->directory(),
$this->request->controller,

js如何读取cookie

var Cookies = {};
/**//**
* 设置Cookies
*/
Cookies.set = function(name, value){
var argv = arguments;
var argc = arguments.length;

同步内容