วันเสาร์ที่ 20 เมษายน พ.ศ. 2556

PHP Integer

PHP Integer() เป็นการประกาศตัวแปรชนิดตัวเลขจำนวนเต็ม {..., -2, -1, 0, 1, 2, ...}. 

Syntax


1.<?
2.$var = 1234;
3.?>



Sample

1.<?php
2.$a = 1234; // decimal number
3.$a = -123; // a negative number
4.$a = 0123; // octal number (equivalent to 83 decimal)
5.$a = 0x1A; // hexadecimal number (equivalent to 26 decimal)
6.?>



PHP do..while 

ไม่มีความคิดเห็น:

แสดงความคิดเห็น