• 小伍手札 (current)

[php] 連結保留所有$_GET

2012-03-29
分類: PHP
TAG:
  • PHP

你可能會以page做為頁面控制的參數,在 if($key==”page”) 時排除掉,你也可以增加或減少

1
2
3
4
5
6
7
$extra_txt = '';
foreach($_GET as $key => $aget){
if($key=="page"){
continue;
}
$extra_txt .= '&'.$key.'='.$aget;
}
[1](http://blog.gorendo.org/text.php?page=1%3C?=$extra_txt?%3E)
Share
Next: [C/C++] HelloWorld in Eclipse Prev: [WEB] 網站開發用工具總匯
ABOUT
Card image cap

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
最新文章
  • [Mac] 移動排列選單列圖示
  • [php] 在 Mac 用ATOM / Visual Studio Code 為 php debug
  • [Mac] 解決 您要讓應用程式 XXX 接受傳入的網路連接嗎 一直跳出
  • [php] 實作callback
  • [Android] setClickListener in custom view
  • 標籤
    PHP 20 Android 17 WEB 10 Game Dev 9 JAVA 9 Unity 8 攝影 7 Software 4 Mac 4 jQuery 3 MySQL 3 DATABASE 3 C/C++ 3 程式語言 2 iOS 2 C# 2 Xcode 2 Google API 2 Javascript 2 Cocos2D 2 Lua 1 programming 1 敗家 1 SEO 1 CSS 1 WINDOWS 1 資訊安全 1 Facebook 1 Node.JS 1 opensource 1 OpenGL 1 ATOM 1
    © 2018 gonex45
    Powered by Hexo