ASP2PHP函数列表参考 [英] ASP2PHP Function List Reference
问题描述
我是PHP的新手,所以我想我会把一些
的参考列表作为函数。
以下是我到目前为止的内容。
ASP函数PHP函数
==================== ========= ======
左(str,length)substr(str,start,length)
右(str,length)substr(str,start,length)
Mid(str,start,stop)substr(str,start,length)
Len(str)strlen(str)
Trim( str)trim(str)
LTrim(str)ltrim(str)
RTrim(str)rtrim(str)
UCase(str) strtoupper(str)
LCase(str)strtolower(str)
InStr(str,value)---不要知道---
I am new to PHP so I thought I would make a Reference List of some of
the functions.
Below is what I have so far.
ASP Functions PHP Functions
==================== ===============
Left(str,length) substr(str,start,length)
Right(str,length) substr(str,start,length)
Mid(str,start,stop) substr(str,start,length)
Len(str) strlen(str)
Trim(str) trim(str)
LTrim(str) ltrim(str)
RTrim(str) rtrim(str)
UCase(str) strtoupper(str)
LCase(str) strtolower(str)
InStr(str,value) ---DON''T KNOW---
推荐答案
T.Taylor写道:
T.Taylor wrote:
我是PHP的新手,所以我想我会做一个参考列表一些
函数。
以下是我到目前为止。
ASP函数PHP函数
============ ======== ===============
左(str,length)substr(str,start,length)
对(str,length) )substr(str,start,length)
Mid(str,start,stop)substr(str,start,length)
是停止参数的长度,还是最后一个角色的位置?那个
可能会有所不同......
例如(我要尝试这个,所以请原谅我......) :
<%
dim MyStr as String,NewStr as String
MyStr ="这是我的字符串"
NewStr = Mid(MyStr,3,7)
%>
如果NewStr最终成为s is我"那就相当了。 (我不确定
因为我不使用asp)
Len(str)strlen(str)
Trim(str) trim(str)
LTrim(str)ltrim(str)
RTrim(str)rtrim(str)
UCase(str)strtoupper(str)
LCase(str)strtolower( str)
InStr(str,value)---不要知道---
I am new to PHP so I thought I would make a Reference List of some of
the functions.
Below is what I have so far.
ASP Functions PHP Functions
==================== ===============
Left(str,length) substr(str,start,length)
Right(str,length) substr(str,start,length)
Mid(str,start,stop) substr(str,start,length)
Is the stop parameter the length, or the last character''s position? That
may make a bit of difference...
For instance (I''m about to attempt this, so please forgive me...):
<%
dim MyStr as String, NewStr as String
MyStr = "This is my string"
NewStr = Mid(MyStr,3,7)
%>
if NewStr ends up to be "s is my" then that is equivalent. (I''m not sure
on this as I don''t use asp)
Len(str) strlen(str)
Trim(str) trim(str)
LTrim(str) ltrim(str)
RTrim(str) rtrim(str)
UCase(str) strtoupper(str)
LCase(str) strtolower(str)
InStr(str,value) ---DON''T KNOW---
InStr做什么?也许像strstr这样的东西?
-
Justin Koivisto,ZCE - ju****@koivi.com
http://koivi.com
T.Taylor写道:
T.Taylor wrote:
ASP函数PHP函数
======== ============ ===============
.... InStr(str,value)---不要知道 - -
ASP Functions PHP Functions
==================== =============== .... InStr(str,value) ---DON''T KNOW---
strpos(haystack,needle)
参见 http://www.php.net/strpos 了解详情。
干杯,>
NC
strpos(haystack, needle)
See http://www.php.net/strpos for details.
Cheers,
NC
T.Taylor写道:
T.Taylor wrote:
我是PHP的新手,所以我想我会做一个一些
函数的参考列表。
以下是我到目前为止。
I am new to PHP so I thought I would make a Reference List of some of
the functions.
Below is what I have so far.
http://design215.com/toolbox/asp.php
-
Justin Koivisto,ZCE - ju****@koivi.com
http://koivi.com
http://design215.com/toolbox/asp.php
--
Justin Koivisto, ZCE - ju****@koivi.com
http://koivi.com
这篇关于ASP2PHP函数列表参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!