我是编程新手,很荣幸将一些CFML转换为PHP作为我的首要任务之一。
<cfif find("tips",cgi.query_string) or find("tip",cgi.query_string)>
<li class="current middle"><a class="topnavtext" href="#siteurl#tips">GF Tips</a></li>
<cfelse><li class="middle"><a class="topnavtext" href="#siteurl#tips">GF Tips</a></li>
</cfif>
是在cgi.query_string
中寻找"提示"吗?
如何将其转换为PHP?
$_SERVER['QUERY_STRING']
是获取查询字符串所需的内容。
此处提供了更多信息。