PHP provides a couple of constants especially for use as Booleans : Boolean : Language Basics PHP Source Code
Ajax
Ajax Examples
Ajax Tutorials
Scripts and Programs
Javascript
Javascript Examples Tutorials
DHTML Tutorials
Javascript References
Scripts and Programs
HTML
HTML Tutorials
HTML References
HTML DOM 0 References
HTML DOM 2 References
CSS
CSS Tutorials
CSS References
PHP
PHP Source Code
PHP References
Scripts and Programs
C#
C# Source Code
C# Examples
PHP Source Code
»
Language Basics
»
Boolean
»
PHP provides a couple of constants especially for use as Booleans
<?
if
(
TRUE
)
print
(
"This will always print<BR>"
)
;
else
print
(
"This will never print<BR>"
)
;
?>
HTML code for linking to this page:
Related in same category :
Boolean values
Boolean type constant
PHP Function Reference -> Users Code Examples / Notes - > Boolean:
Booleans
Converting to boolean
From booleans
Short-circuited boolean evaluation
PHP Source Code
Language Basics
»
Boolean
Arithmetic Operators
Assign Operator
Binary Number
Bitwise Operators
Boolean
Break
Char
Comments
Constant
Continue
Data Type Convert
Data Type
Define Constant
Do While
Double
Equality Operators
Exit
For Each
For
Global
GLOBALS
Hexadecimal Number
If
Include
Integer
Logic Operators
Modulus
Octal Number
Operator Precedence
Php Tag
PNG
Polygon
Postfix Prefix Operators
Pre Defined Constant
Reference
Relational Operators
Shorthand Operators
Static
Switch
Trinary Operator
Variable Cast
Variable Scope
Variable Set Unset
Variable Type
While
Chart
Class
COM and .Net (Windows)
Components
Cookie Session
Data Structure
Databases
Design Patterns
Development
Email
File Directory
Form
Functions
Graphics Image
HTML
Language Basics
Login Authentication
Math
MySQL Database
Network
String
Web Services SOAP WSDL
XML