問題描述
我需要一些幫助來追蹤有關 mysqli 結果對象的 fetch_field 方法中的信息的一些基本信息.
I need some help tracking down a bit of nitty gritty information on the information in the fetch_field method of a mysqli result object.
特別是 type 屬性 - 來自 文檔似乎該字段返回一個整數...
Specifically the type property - from the documentation it would seem that this field returns an integer...
太好了!
我似乎找不到可以讓我將數字轉換為相應數據類型的表格.我什至不確定我是在尋找 php 還是 mysql 特定信息.迫不及待我可以自己繪制出來,但我更希望有人能指出我的實際文檔.
I just can't seem to find a table that will let me translate the number to it's respective data type. I'm not even sure if I'm looking for php or mysql specific information. Push come to shove I can map it out myself, but I'd much rather if someone can point me to the actual documentation.
我錯過了什么?
推薦答案
您可以將此數字與此處列出的各種預定義常量進行比較:
You can compare this number to various predefined constants, which are listed here:
http://www.php.net/manual/en/mysqli.常量.php
例如MYSQLI_TYPE_SHORT
這篇關于PHP mysqli_fetch_field 數據類型的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!