PHP Knowledge Base
Error Messages/
Object-Oriented Programming/
links
Example(s):
Example:
Example:
Example:
Example(s): loop through an array of variables
Example(s):
Example: simple object (instantiated class) and how to access a property and a method
Example(s): simple prepared statement (insert)
Example(s):
Example(s): row count with PDO
Example(s): MySQLi Object-oriented SELECT Statement
Example(s): PHP PDO SELECT Statement
Example(s): PHP PDO SELECT Query: Selecting multiple rows (phpdelusions.net approved)
Example(s): Return a single row using PHP PDO
Example(s): SUM() PHP PDO/MySQL
Example(s):
Example(s):
Formatting Numbers: How to Always Get 2 Digits
Formatting Numbers: How to Always Get 2 Decimal Places
Difference Between
Difference Between
Double-quoted strings and complex variables (array or object property)
PHP MySQLi Functions
Why You Should Be Using PHP's PDO for Database Access
List All Session Variables
The Ternary Operator
PHP date
PHP time
PHP Regular Expressions: Greedy versus Lazy Quantifiers
Delete Blank Lines from Text
Add one week to a user defined date
Using variables in
Loop through a simple array using
Loop through an associative array
Loop through a multidimensional array
Set and format current date using
Format date using
Format Date using
Get and Format Current Date Using
Examples:
Get 'key'/'column' from multidimensional array using
PHP to Upload a File Using HTML Form
Permissions
NULL
Object-Oriented Programming/
links
Example(s):
echo
function shortcutExample:
file_get_contents
Example:
file_put_contents
Example:
file_get_contents
and FILTER_SANITIZE_STRING
Example(s): loop through an array of variables
Example(s):
nl2br
Example: simple object (instantiated class) and how to access a property and a method
Example(s): simple prepared statement (insert)
Example(s):
printf
and placeholdersExample(s): row count with PDO
Example(s): MySQLi Object-oriented SELECT Statement
Example(s): PHP PDO SELECT Statement
Example(s): PHP PDO SELECT Query: Selecting multiple rows (phpdelusions.net approved)
Example(s): Return a single row using PHP PDO
Example(s): SUM() PHP PDO/MySQL
Example(s):
sprintf
Example(s):
file_exists
Formatting Numbers: How to Always Get 2 Digits
Formatting Numbers: How to Always Get 2 Decimal Places
$_SERVER['DOCUMENT_ROOT']
Difference Between
echo
and return
Difference Between
include
and require
Double-quoted strings and complex variables (array or object property)
PHP MySQLi Functions
Why You Should Be Using PHP's PDO for Database Access
List All Session Variables
The Ternary Operator
PHP date
format
charactersPHP time
format
charactersPHP Regular Expressions: Greedy versus Lazy Quantifiers
Delete Blank Lines from Text
Add one week to a user defined date
Using variables in
preg_replace()
Loop through a simple array using
foreach
Loop through an associative array
Loop through a multidimensional array
Set and format current date using
DateTime
classFormat date using
DateTime
classFormat Date using
strtotime()
functionGet and Format Current Date Using
date()
Examples:
preg_replace
pathinfo
Get 'key'/'column' from multidimensional array using
array_column()
PHP to Upload a File Using HTML Form
Permissions
NULL