码迷,mamicode.com
首页 >  
搜索关键字:array    ( 29504个结果
thinkphp 3.2.3 计划任务具体实现实例教程
thinkphp 3.2.3 计划任务具体实现实例教程 很多情况下,我们网站都会用到计划任务即定时更新做一些处理,类似Discuz后台的计划任务,比如更新每日发帖数目等等! 这里TP也是可以实现的,首先在应用公共配置目录下新建crons.php,写入: <?php return array( 'cr ...
分类:Web程序   时间:2016-05-26 23:22:57    阅读次数:913
LeetCode OJ 55. Jump Game
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim ...
分类:其他好文   时间:2016-05-26 20:26:46    阅读次数:123
php 数组 常用函数
一、数组操作的基本函数数组的键名和值array_values($arr); 获得数组的值array_keys($arr); 获得数组的键名array_flip($arr); 数组中的值与键名互换(如果有重复前面的会被后面的覆盖)in_array("apple",$arr); 在数组中检索applea ...
分类:编程语言   时间:2016-05-26 10:04:43    阅读次数:151
153. Find Minimum in Rotated Sorted Array
题目的意思是想在头尾连在一起是一个排好序的数组里面找出最小的那个数 感觉很简单,于是有了下面的解法 代码如下: ...
分类:其他好文   时间:2016-05-25 23:52:38    阅读次数:220
26. Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo ...
分类:其他好文   时间:2016-05-25 22:26:36    阅读次数:196
【JavaScript学习】-JavaScript内置对象1-对象概述
对象(object): JavaScript 中的所有事物都是对象,如:字符串、数值、数组、函数等,每个对象带有属性和 方法。JavaScript 提供多个内建对象,比如 String、Date、Array 等等。 对象的属性: 反映该对象某些特定的性质的,如:字符串的长度、图像的长宽等; 对象的方 ...
分类:编程语言   时间:2016-05-25 20:49:20    阅读次数:187
【HDU3507】Print Article
单调队列DP复出练手题 朴素方程dp[i]=min(dp[j]+(s[i]-s[j-1])^2+m 你懂得 1 var dp,s:array[0..500000]of int64; 2 a,q:array[1..500000]of longint; 3 n,m,i,t,w:longint; 4 5 ...
分类:其他好文   时间:2016-05-25 20:46:48    阅读次数:184
Javascript回顾
Javascript构成:基本知识(语法、概念)内置类、DOM、事件、面向对象。 基本知识: 内置类:JavaScript 对象JS Array、 JS Boolean JS Date JS Math JS Number JS String JS RegExp JS Functions JS Eve ...
分类:编程语言   时间:2016-05-25 20:36:46    阅读次数:175
php 输出excel
直接使用header输出<?phpheader("Content-type:application/vnd.ms-excel;charset=UTF-8");header("Content-Disposition:filename=test.xls");$cars=array("test1","test2","中文测试");foreach($carsas$key=>$v){//直接输出英文没有问题中文会出问题所以要转一下编码 ec..
分类:Web程序   时间:2016-05-25 18:59:31    阅读次数:273
百联网上商城加密
var BI_RM = "0123456789abcdefghijklmnopqrstuvwxyz"; var BI_RC = new Array(); function int2char(n) { return BI_RM.charAt(n); } function aaa(pwd,modulus ...
分类:其他好文   时间:2016-05-25 18:47:36    阅读次数:174
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!