PHP examples (example source code) Organized by topic

C++
PHP
PHP Home   
 



 
Form
Login Authentication
HTML
XML
Form
 
Form Action  ( 1 ) Form based Email  ( 2 ) Form Based Query  ( 1 ) Form Checkbox  ( 1 ) Form Data  ( 1 ) Form Select  ( 2 )
Form TextArea  ( 1 ) Form Validation  ( 2 ) Hidden Field  ( 1 ) Self Call Form  ( 2 ) TextBox  ( 3 )
Login Authentication
 
Authentication  ( 1 ) Browser Password Dialog  ( 2 ) Cookie based Login  ( 1 ) File Based Authentication  ( 1 ) ID Generate  ( 1 ) Login Form  ( 2 )
md5  ( 4 )
HTML
 
HTML Cohabitation  ( 2 ) HTML File  ( 1 ) HTML Font  ( 2 ) HTML String  ( 3 ) Hyperlink  ( 1 ) Table Utilities  ( 2 )
Web Color  ( 1 )
XML
 
DOM Edit  ( 1 ) SAX  ( 3 ) XML Attributes  ( 1 ) XML DOM Tree  ( 1 ) XML File Read  ( 3 ) XML Handler  ( 3 )
XML Path  ( 2 ) XML Transformation  ( 2 ) XML Validation  ( 1 )
 
MySQL Database
Cookie Session
File Directory
MySQL Database
 
Choose Database  ( 1 ) Database Connection  ( 2 ) Database Create  ( 1 ) Database Delete  ( 2 ) Database Insert  ( 3 ) Database MetaData  ( 6 )
Database Query  ( 5 ) Database Update  ( 3 ) MySQL Connection  ( 4 ) MySQL Processes  ( 1 ) Query Result  ( 9 ) SQL String  ( 1 )
Table Column  ( 2 ) Table Create  ( 4 ) Table Database  ( 2 ) Table MetaData  ( 5 )
Cookie Session
 
Cookie  ( 4 ) Session Encode  ( 1 ) Session ID  ( 1 ) Session Start  ( 1 ) Session Variables Create  ( 2 ) Session Variables Delete  ( 2 )
Session Variables Modify  ( 1 ) Session Variables Register  ( 2 ) Session Variables Unregister  ( 1 )
File Directory
 
Directory Create Delete  ( 3 ) Directory  ( 9 ) Disk Drive  ( 3 ) File Close  ( 1 ) File Copy Move  ( 2 ) File Delete  ( 1 )
File Exist  ( 1 ) File Lock  ( 1 ) File Open  ( 1 ) File Property  ( 17 ) File Read  ( 7 ) File Seek  ( 1 )
File Upload  ( 5 ) File Write  ( 3 ) File  ( 3 ) Path  ( 1 ) Stream Context  ( 1 ) Stream Filter  ( 2 )
Text File Read  ( 8 ) Text File Write  ( 2 )
 
Email
Math
String
Email
 
Email Address  ( 1 ) Email Validation  ( 2 ) mail function  ( 5 )
Math
 
abs  ( 1 ) Math Functions  ( 8 ) Random  ( 2 ) round  ( 1 ) Scientific Notation  ( 1 )
String
 
New Line  ( 1 ) Replace  ( 2 ) strcspn  ( 4 ) String Case  ( 5 ) String Compare  ( 5 ) String Contains  ( 1 )
String Count  ( 2 ) String Escape  ( 4 ) String Find  ( 2 ) String Length  ( 2 ) String Matches  ( 8 ) String Operators  ( 2 )
String Pad  ( 2 ) String Repeat  ( 1 ) String Replace  ( 7 ) String Split  ( 2 ) String Token  ( 5 ) String Trim Chop  ( 6 )
strpos  ( 2 ) Sub string  ( 9 )
 
Graphics Image
Components
Chart
Graphics Image
 
Arc  ( 1 ) Circle  ( 2 ) Draw String  ( 5 ) Ellipse  ( 3 ) Font  ( 1 ) Image Color  ( 3 )
Image Create  ( 1 ) Image Font  ( 2 ) Image Paint  ( 1 ) JPG Image  ( 2 ) Line  ( 3 ) Paint String  ( 1 )
Rectangle  ( 2 ) Round Rectangle  ( 1 ) Text Align  ( 1 ) Transparent  ( 1 ) Triangler  ( 1 ) TrueType Fonts  ( 2 )
Water Mark  ( 1 )
Components
 
Feedback Form  ( 1 ) Page Counter  ( 2 ) Registration Form  ( 1 )
Chart
 
Bar Chart  ( 1 ) Pie Chart  ( 1 )
 
Class
Design Patterns
Class
 
Abstract Class  ( 1 ) abstract  ( 1 ) Class Constant Property  ( 3 ) Class Constructor  ( 1 ) Class Definition  ( 1 ) Class Inheritance  ( 5 )
Class Instance  ( 1 ) Class Method  ( 5 ) Class Property  ( 3 ) Class Static Properties  ( 1 ) clone  ( 3 ) Constructor  ( 4 )
Destructors  ( 2 ) extends  ( 1 ) final  ( 1 ) Getter Setter  ( 3 ) Inheritance  ( 3 ) instance of  ( 2 )
Interface  ( 2 ) Method Override  ( 4 ) Object Attribute  ( 2 ) private  ( 1 ) Properties get  ( 1 ) Properties set  ( 2 )
protected  ( 1 ) public  ( 3 ) Reflection Class Definition  ( 8 ) Reflection Class Hiearchy  ( 2 ) Reflection Class Methods  ( 9 ) Reflection Constructor  ( 1 )
Reflection Existance  ( 2 ) Reflection Invoke  ( 2 ) self  ( 1 ) static properties  ( 1 ) this  ( 2 ) toString  ( 1 )
Design Patterns
 
Composite Pattern  ( 1 ) Decorator Pattern  ( 1 ) Factory Pattern  ( 1 ) Request Info  ( 4 ) Singleton Pattern  ( 2 ) Strategy Pattern  ( 1 )
 
Language Basics
Development
Data Structure
Functions
Language Basics
 
Arithmetic Operators  ( 1 ) Assign Operator  ( 2 ) Binary Number  ( 2 ) Bitwise Operators  ( 2 ) Boolean  ( 3 ) Break  ( 3 )
Char  ( 2 ) Comments  ( 5 ) Constant  ( 1 ) Continue  ( 2 ) Data Type Convert  ( 5 )
Data Type  ( 8 ) Define Constant  ( 1 ) Do While  ( 3 ) Double  ( 3 ) Equality Operators  ( 2 ) Exit  ( 1 )
For Each  ( 2 ) For  ( 10 ) Global  ( 3 ) GLOBALS  ( 2 ) Hexadecimal Number  ( 2 ) If  ( 7 )
Include  ( 4 ) Integer  ( 11 ) Logic Operators  ( 7 ) Modulus  ( 1 ) Octal Number  ( 2 ) Operator Precedence  ( 1 )
Php Tag  ( 5 ) PNG  ( 2 ) Polygon  ( 1 ) Postfix Prefix Operators  ( 5 ) Pre Defined Constant  ( 2 ) Reference  ( 4 )
Relational Operators  ( 2 ) Shorthand Operators  ( 1 ) Static  ( 2 ) Switch  ( 4 ) Trinary Operator  ( 1 ) Variable Cast  ( 1 )
Variable Scope  ( 5 ) Variable Set Unset  ( 5 ) Variable Type  ( 3 ) While  ( 1 )
Development
 
Apache  ( 1 ) Client Info  ( 5 ) CSV  ( 4 ) date function  ( 2 ) Date Time  ( 9 ) Debug  ( 1 )
Echo  ( 7 ) Error Obtrusive Messages  ( 1 ) Error Report  ( 1 ) Exceptions  ( 2 ) Explode implode  ( 5 ) GET POST  ( 1 )
getdate  ( 12 ) HTTP POST VARS  ( 1 ) I18N Locale  ( 2 ) include path  ( 1 ) list  ( 2 ) max execution time  ( 1 )
mktime  ( 1 ) Number Format  ( 3 ) Php Environment  ( 4 ) Print  ( 6 ) Printf  ( 20 ) print r  ( 3 )
Query String  ( 3 ) Server Info  ( 3 ) sprintf  ( 5 ) System Command  ( 9 ) System Log  ( 1 ) Your own Exceptions  ( 1 )
Data Structure
 
Array Element  ( 6 ) Array Function  ( 33 ) Array List  ( 1 ) Array Loop  ( 2 ) Array range  ( 3 ) Array sort  ( 9 ) Associative Array  ( 13 ) Multidimensional Array  ( 4 ) Nested Array  ( 1 ) Stack  ( 4 )
Functions
 
Definition  ( 4 ) Dynamic Function  ( 2 ) Function Recursion  ( 2 ) Nested Functions  ( 1 ) Override  ( 2 ) Parameters  ( 9 )
Return Value  ( 4 )
 
Network
Web Services SOAP WSDL
Network
 
DNS Validation  ( 1 ) DNS  ( 4 ) Domain Name  ( 1 ) IP Address  ( 1 ) Port  ( 1 ) Socket  ( 4 )
URL Encoding  ( 1 ) URL Redirect  ( 2 ) URL Validation  ( 1 )
Web Services SOAP WSDL
 
SOAP Message  ( 1 ) SOAP Response  ( 1 ) WSDL  ( 1 )