Numbers : Variables « Language Basics « PHP


    print 6;
    print 6.3;
    print 6.30;
    print 0.4422;
    print 16.216;
    print 0;
    print -23;
    print 1298317;
    print -9912111;
    print -12.52222;
    print 0.00;

Related examples in the same category

1.PHP Variable Examples
2.PHP Superglobal Arrays
3.PHP 5 variable functionality.
4.A properly set-up PHP variable
5.Automatic Type Conversion
6.Calculate the variable name for simpler variables and use that name to access the value of that variable.
7.Operating on variables
8.valid statements
9.Numeric Data Types
10.Valid and invalid variable names