|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
要想从事软件开发工作,那么,还有很多的知识要学习,其实,不管是以后想去从事哪个工作,都需要自己去利用空闲的时间去不断的学习新的知识,不断的充实自己。函数|中文 函数Abs()
描写:
mixed abs (mixed number);
Returns the absolute value of number. If the argument number is float, return type is also float, otherwise it is int(前往所输的数字的相对值,浮点型前往浮点型,其他前往整型)
函数Acos()
描写:
float acos (float arg);
Returns the arc cosine of arg in radians(前往角的余弦值)
Adabas D功效
函数ada_afetch()
描写:
fetch a result row into an array(前往了局到一个数组里)
函数ada_autocommit()
描写:
toggle autocommit behaviour
函数ada_close()
描写:
close a connection to an Adabas D server (关失落一个数据库的联系关系)
函数ada_commit()
描写:
commit a transaction (提交一个处置)
函数ada_connect()
描写:
connect to an Adabas D datasource(联接一个数据库)
函数ada_exec()
描写:
prepare and execute a SQL statement(履行一个SQL语句)
函数ada_fetchrow()
描写:
fetch a row from a result(从数据库中取一笔记录)
函数ada_fieldname()
描写:
get the columnname(失掉字段名)
函数ada_fieldnum()
描写:
get column number(失掉字段的总数)
函数ada_fieldtype()
描写:
get the datatype of a field(获得字段的类型)
函数ada_freeresult()
描写:
free resources associated with a result
函数ada_numfields()
描写:
get the number of columns in a result(在了局中失掉字段数量)
函数ada_numrows()
描写:
number of rows in a result(所取了局的纪录数)
函数ada_result()
描写:
get data from results(失掉了局的数据)
函数ada_resultall()
描写:
print result as HTML table(以HTML的格局输入了局)
函数ada_rollback()
描写:
rollback a transaction
函数apache_lookup_uri()
描写:
Perform a partial request for the specified URI and return all info about it,This performs a partial request for a URI. It goes just far enough to obtain all the important information about the given resource and returns this information in a class. The properties of the returned class are:
status:the_request、status_line、method、content_type、handler
uri:filename、path_info、args、boundary、no_cache、no_local_copy、 allowed、send_bodyct、bytes_sent、byterange、clength、unparsed_uri mtime、request_time
函数apache_note()
描写:
Get and set apache request notes,apache_note()</B> is an Apache-specific function which gets and sets values in a request's notes table. If called with one argument, it returns the current value of note note_name . If called with two arguments, it sets the value of note note_name to note_value and returns the previous value of note note_name .
函数getallheaders()
描写:
Fetch all HTTP request headers(获得一切HTTP头部恳求)
例子:
$headers = getallheaders()</B>;
while (list($header, $value) = each($headers)) {
echo "$header: $value
\n";
}
这个例子将显示前往一切比来的头部恳求。
注:此函数只撑持APACHE下的PHP
函数virtual()
描写:
virtual() is an Apache-specific function which is equivalent to in mod_include. It performs an Apache sub-request. It is useful for including CGI scripts or .shtml files, or anything else that you would parse through Apache. Note that for a CGI script, the script must generate valid CGI headers. At the minimum that means it must generate a Content-type header.
数组函数
函数array()
描写:
创立一个数组
array array(...)传回一数组的值,这些值可以用=>来附值。
上面申明了若何构建一个二维数组,及若何指定这个数组的key,和在正常的数组中以跳序的体例去指定命组的值。
Example 1. array() example
$fruits = array(
"fruits" => array("a"=>"orange","b"=>"banana","c"=>"apple"),
"numbers" => array(1, 2, 3, 4, 5, 6),
"holes" => array("first", 5 => "second", "third")
);
函数array_walk()
描写:
用函数的体例对每一个数组的元素做处置
int array_walk (array arr, string func);
利用一个叫FUNC的函数对ARR的每一个元素做处置,那些元素将当做是首传给FUNC的参数;假如FUNC需求超越一个参数,则在每次array_walk()呼唤FUNC时都发生一个正告信息,这些正告信息是可以消弭的,只需把'@'符号加在array_walk()之前便可。
注重:FUNC会直接对ARR中的元素做处置,所以任何元素的变更将直接改动其在数组中的值。
Example 1. array_walk()</B> example
$fruits = array("d"=>"lemon","a"=>"orange","b"=>"banana","c"=>"apple");
function test_alter( $item1 ) { $item1 = 'bogus'; }
function test_print( $item2 ) { echo "$item2
\n"; }
array_walk( $fruits, 'test_print' );
array_walk( $fruits, 'test_alter' );
array_walk( $fruits, 'test_print' );
函数arsort()
描写:
以倒序的体例分列一数组但其序数则不变
void arsort (array array);
This function sorts an array such that array indices maintain their correlation with the array elements they are associated with. This is used mainly when sorting associative arrays where the actual element order is significant. Example 1. arsort()</B> example
$fruits = array("d"=>"lemon","a"=>"orange","b"=>"banana","c"=>"apple");
arsort($fruits);
for(reset($fruits); $key = key($fruits); next($fruits)) {
echo "fruits[$key] = ".$fruits[$key]."\n";
}
This example would display: fruits[a] = orange fruits[d] = lemon fruits = banana fruits[c] = apple The fruits have been sorted in reverse alphabetical order, and the index associated with each element has been maintained.
函数asort()
描写:
按次分列一数组且其序数不变
void asort (array array);
This function sorts an array such that array indices maintain their correlation with the array elements they are associated with. This is used mainly when sorting associative arrays where the actual element order is significant. Example 1. asort()</B> example
$fruits = array("d"=>"lemon","a"=>"orange","b"=>"banana","c"=>"apple");
asort($fruits);
for(reset($fruits); $key = key($fruits); next($fruits)) {
echo "fruits[$key] = ".$fruits[$key]."\n";
}
This example would display: fruits[c] = apple fruits = banana fruits[d] = lemon fruits[a] = orange The fruits have been sorted in alphabetical order, and the index associated with each element has been maintained.
理解网站这一概念之后不难看出,任何网站都是由网页组成的,也就是说想完成网站,必须先学会做网页,因此必须要掌握了HTML,才能为今后制作网站打下基础。 |
|