http://www.gamesir.com:6969/announce
http://btfans.3322.org:6969/announce
http://sucs.org:6969/announce
http://www.pipebomb.net/tracker.php
http://zuoye.net:6969/announce
http://202.101.165.177:6969/announce
http://isnot.ws:6969/announce
http://bt.eastgame.net:6969/announce
http://www.egame365.com:6969/announce
http://iins.3322.org:6969/announce
http://www.torrentse.cx:63400/announce
星期一, 10月 04, 2004
[php] variable 簡單用法
@echo "$var abcdsdf";
變數加字串要用括號括起到尾要加"; "
只有變數可以不加雙引號
@ $num=2 + 3 ; $string ="ABCD";
$num++;
數字和文字可以直接指定給變數變數可以遞增
@A good rule of thumb for PHP: "When in doubt try it; it will probably work."
變數加字串要用括號括起到尾要加"; "
只有變數可以不加雙引號
@ $num=2 + 3 ; $string ="ABCD";
$num++;
數字和文字可以直接指定給變數變數可以遞增
@A good rule of thumb for PHP: "When in doubt try it; it will probably work."
[php] array 簡單用法
@製造array
(1)單層
$fruit[0] = 'banana';
$fruit[1] = 'papaya';
$favorites['animal'] = 'turtle';
$favorites['monster'] = 'cookie';
(2)多層
$people = array ('David' => array('shirt' => 'blue',
'car' => 'minivan'),
'Adam' => array('shirt' => 'white',
'car' => 'sedan'));
print count($people) 可算出共有多少個element;
(3) Adding the [] after the variable name times lets PHP know that it is an array, and not a scalar.
(1)單層
$fruit[0] = 'banana';
$fruit[1] = 'papaya';
$favorites['animal'] = 'turtle';
$favorites['monster'] = 'cookie';
(2)多層
$people = array ('David' => array('shirt' => 'blue',
'car' => 'minivan'),
'Adam' => array('shirt' => 'white',
'car' => 'sedan'));
print count($people) 可算出共有多少個element;
(3) Adding the [] after the variable name times lets PHP know that it is an array, and not a scalar.
訂閱:
文章 (Atom)