變數函式庫

intval

(PHP3 , PHP4)

intval ---  取得變數的整數值

語法 : int intval(mixed var, int [base] );

說明 : 

傳回參數var的整數值,使用指定的base做為轉換的基底(預設值為10),var可以是任何的型態,但在陣列或物件上不能使用此函式。

參考 : doubleval( )  strval( )  settype( )


上一頁 首頁 下一頁