Welcome to my PHP page

Red

Green

Yellow

Brown
Orange

Operators for Comparison

Operator Description True/False Example ($v is 4) Result
== Equivalent True when the left side is equivalent to right side. $v == 5 False
!= Not Equivalent True when the left side is not equivalent to the right side. $v != 5 True
=== Identical True when the left side is equivalent to the right side, and they are the same type. $v === 4 True
Not Identical True when the left side is equivalent to the right side, and they are not the same type. $v === "4" False
> Greater Than True when the left side is greater than the right side. $v > 4 False
>= Greater Than or Equal To True when the left side is greater than or equal to the right side. $v >= 4 True
< Less Than True when the left side is less than the right side. $v < 4 False
<= Less Than or Equal To True when the left side is less than or equal to the right side. $v <= 4 True

Logical Operators

Operator Description True/False Example Result
¦ or or Or Left side or right side is true. true ¦¦ false / true or false True
xor Xor Left side or right side is true, however, not both sides. true xor false False
&& or and And Left side and right side are both true. true && false / true and false False
! Not The operand is not true. ! something False

PHP Code examples

<?php class myWhatever { var $varOne = "one"; var $varTwo = "two"; var $varThr = "three"; } $myWhatever = new myWhatever; echo "variables are: ".$myWhatever -> varOne." ".$myWhatever -> varTwo." ".$myWhatever -> varThr."!"; ?>

PHP Functions (from the PHP.net page)


Affecting PHP's Behaviour


APC — Alternative PHP Cache
APD — Advanced PHP debugger
bcompiler — PHP bytecode Compiler
BLENC — Blenc - BLowfish ENCoder for PHP source scripts
Error Handling — Error Handling and Logging
htscanner — htaccess-like support for all SAPIs
inclued — Inclusion hierarchy viewer
Memtrack
OPcache
Output Control — Output Buffering Control
PHP Options/Info — PHP Options and Information
runkit
scream — Break the silence operator
uopz
Weakref — Weak References
WinCache — Windows Cache for PHP
Xhprof — Hierarchical Profiler

Audio Formats Manipulation


ID3 — ID3 Tags
KTaglib
oggvorbis — OGG/Vorbis
OpenAL — OpenAL Audio Bindings

Authentication Services


KADM5 — Kerberos V
Radius

Command Line Specific Extensions


Ncurses — Ncurses Terminal Screen Control
Newt
Readline — GNU Readline

Compression and Archive Extensions


Bzip2
LZF
Phar
Rar — Rar Archiving
Zip
Zlib — Zlib Compression
Credit Card Processing
MCVE — MCVE (Monetra) Payment
SPPLUS — SPPLUS Payment System

Cryptography Extensions


Crack — Cracklib
Hash — HASH Message Digest Framework
Mcrypt
Mhash
OpenSSL
Password Hashing
Database Extensions
Abstraction Layers
Vendor Specific Database Extensions

Date and Time Related Extensions


Calendar
Date/Time — Date and Time
HRTime — High resolution timing

File System Related Extensions


Direct IO
Directories
Fileinfo — File Information
Filesystem
Inotify
Mimetype
Proctitle
xattr
xdiff

Human Language and Character Encoding Support


Enchant — Enchant spelling library
FriBiDi
Gender — Determine gender of firstnames
Gettext
iconv
intl — Internationalization Functions
Multibyte String
Pspell
Recode — GNU Recode

Image Processing and Generation


Cairo
Exif — Exchangeable image information
GD — Image Processing and GD
Gmagick
ImageMagick — Image Processing (ImageMagick)

Mail Related Extensions


Cyrus — Cyrus IMAP administration
IMAP — IMAP, POP3 and NNTP
Mail
Mailparse
vpopmail

Mathematical Extensions


BC Math — BCMath Arbitrary Precision Mathematics
GMP — GNU Multiple Precision
Lapack
Math — Mathematical Functions
Statistics
Trader — Technical Analysis for Traders

Non-Text MIME Output


FDF — Forms Data Format
GnuPG — GNU Privacy Guard
haru — Haru PDF
Ming — Ming (flash)
PDF
PS — PostScript document creation
RPM Reader — RPM Header Reading

Process Control Extensions


Eio
Ev
Expect
Libevent

PCNTL — Process Control


POSIX
Program execution — System program execution
pthreads
Semaphore — Semaphore, Shared Memory and IPC
Shared Memory
Sync

Other Basic Extensions


GeoIP — Geo IP Location
FANN — FANN (Fast Artificial Neural Network)
JSON — JavaScript Object Notation
Judy — Judy Arrays
Lua
Misc. — Miscellaneous Functions
Parsekit
SPL — Standard PHP Library (SPL)
SPL Types — SPL Type Handling
Streams
Tidy
Tokenizer
URLs
V8js — V8 Javascript Engine Integration
Yaml — YAML Data Serialization
Yaf — Yet Another Framework
Taint

Other Services


chdb — Constant hash database
cURL — Client URL Library
Event
FAM — File Alteration Monitor
FTP
Gearman
Gopher — Net Gopher
Gupnp
HTTP
Hyperwave API
LDAP — Lightweight Directory Access Protocol
Memcache
Memcached
mqseries MQ Series
Network
RRD — RRDtool
SAM — Simple Asynchronous Messaging
SNMP
Sockets
SSH2 — Secure Shell2
Stomp — Stomp Client
SVM — Support Vector Machine
SVN — Subversion
TCP — TCP Wrappers
Varnish
YAZ
YP/NIS
0MQ messaging — ZMQ

Search Engine Extensions


mnoGoSearch
Solr — Apache Solr
Sphinx — Sphinx Client
Swish — Swish Indexing

Server Specific Extensions


Apache
FastCGI Process Manager
IIS — IIS Administration
NSAPI
Session Extensions
Msession — Mohawk Software Session Handler Functions
Sessions — Session Handling
Session PgSQL — PostgreSQL Session Save Handler

Text Processing


BBCode — Bulletin Board Code
PCRE — Regular Expressions (Perl-Compatible)
POSIX Regex — Regular Expression (POSIX Extended)
ssdeep — ssdeep Fuzzy Hashing
Strings

Variable and Type Related Extensions


Arrays
Classes/Objects — Class/Object Information
Classkit
Ctype — Character type checking
Filter — Data Filtering
Function Handling
Quickhash
Reflection
Variable handling

Web Services


OAuth
SCA
SOAP
Yar — Yet Another RPC Framework
XML-RPC

Windows Only Extensions


COM — COM and .Net (Windows)
win32ps
win32service

XML Manipulation


DOM — Document Object Model
libxml
SDO — Service Data Objects
SDO-DAS-Relational — SDO Relational Data Access Service
SDO DAS XML — SDO XML Data Access Service
SimpleXML
WDDX
XMLDiff — XML diff and merge
XML Parser
XMLReader
XMLWriter
XSL