thinkPHP5 踩的坑

input('get.id/d'); input('post.name/s'); input('post.ids/a'); Request::instance()->get('id/d'); ThinkPHP5.0版本默認的變量修飾符是/s,如果需要傳入字符串之外的變量可以使用下面的修飾符,包括: 修飾符 作用 s 強制轉換爲字符串類型 d 強制轉換爲整型類型 b 強制轉換爲布爾類型 a 強制轉換
相關文章
相關標籤/搜索