Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 

 

 

Oracle Database Tips by Donald Burleson


 

Data types

PHP is weakly typed language and variables can be of any type.  The first item that deserves mention is the string NULL in the example above. Variable NULL literally means, "the absence of value".  Saying that the variable has the NULL value is the same as saying that the variable has no value.

Variables that do have values usually represent numbers, strings or resources. Variables that represent numbers are represented by strings of digits, with or without the decimal point. Numbers can also be written using an engineering notation in which the number 13500 would be written as 1.35e4, octal or hexadecimal notation. 

The leading zero means the number is written using octal notation, while prefix "0x" is used for hexadecimal notation. For example, the expression $a=0100; would set the variable $a to decimal value of 64 (octal notation), while the expression $a=0x100; would set the variable $a to the decimal value of 256 (hexadecimal notation).

Boolean Values

In addition to numbers, most programming languages recognize Boolean values and distinguish between TRUE and FALSE statements. Conventions in PHP are very similar to those in Perl or C.  The following list shows FALSE values:

§         0
§        
"0"
§        
0.0
§        
NULL
§        
array()
§        
"" (empty string)
§        
The keyword "FALSE"

Any value that is not FALSE is TRUE. The usual logical operators apply and have the usual precedence identical to the definitions in other languages. It is worth noting that in contrast to SQL which adopted the ternary logic in which the NULL value is neither TRUE nor FALSE, PHP remained TRUE to the classic binary logic.

See code depot for complete scripts

This is an excerpt from the book Easy Oracle PHP.  You can get it for more than 30% by buying it directly from the publisher and get instant HTML-DB scripts from the code depot:

Easy Oracle PHP
Create Dynamic Web Pages with Oracle Data

Includes online HTML-DB code depot

Buy it now for 30% off - Only $19.95
 

HTML-DB support:

For HTML-DB development support just call to gat an Oracle Certified professional for all HTML-DB development projects.

 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.