<?php //code ?>
// comment
/* comment */
References all variables available in global scope
Server and execution environment information
The filename of the currently executing script,example:http://lautturi.com/foo/bar.php(/foo/bar.php)
The name of the server host under which the current script is executing.
The query string, if any, via which the page was accessed.
The document root directory under which the current script is executing
The address of the page (if any) which referred the user agent to the current page.
The absolute pathname of the currently executing script.
Contains the current script's path.
'GET', 'HEAD', 'POST', 'PUT'
HTTP GET variables
HTTP POST variables
HTTP File Upload variables
HTTP Request variables
Session variables
Environment variables
HTTP Cookies
The previous error message
Raw POST data
HTTP response headers
The number of arguments passed to script
Array of arguments passed to script
TRUE if both $a and $b are TRUE
TRUE if both $a and $b are TRUE
TRUE if either $a or $b is TRUE
TRUE if either $a or $b is TRUE
TRUE if $a or $b is TRUE,but not both TRUE
TRUE if $a is FALSE,else FALSE
Bits are set when both $a and $b are set
$a=0111, $b=1011, $a&$b = 0011
Bits are set either $a or $b is set
$a=0111, $b=1011, $a|$b = 1111
Bits are set either $a or $b is set but not both
$a=0111, $b=1011, $a^$b = 1100
Bits are set when $a is not set
$a=0111,~$a = 1000
shift left
$a=0111, $a << 2 = 11100
shift right
$a=0111, $a >>2 = 0001
TRUE if $a is equal to $b
TRUE if $a is equal to $b and both same type
TRUE if $a is not equal to $b
same as ($a != $b)
TRUE if $a is not equal to $b,or they are not the same type
TRUE if $a is less than $b
TRUE if $a is less than or equal to $b
TRUE if $a is greater than $b
TRUE if $a is greater than or equal to $b
Changes the case of all keys in an array
Split an array into chunks
Finds whether a variable is an array
Return the values from a single column in the input array
Creates an array by using one array for keys and another for its values
Counts all the values of an array
Computes the difference of arrays with additional index check
Computes the difference of arrays using keys for comparison
Computes the difference of arrays with additional index check which is performed by a user supplied callback function
Computes the difference of arrays using a callback function on the keys for comparison
Computes the difference of arrays
Fill an array with values, specifying keys
Fill an array with values
Filters elements of an array using a callback function
Exchanges all keys with their associated values in an array
Computes the intersection of arrays with additional index check
Computes the intersection of arrays using keys for comparison
Computes the intersection of arrays with additional index check, compares indexes by a callback function
Computes the intersection of arrays using a callback function on the keys for comparison
Computes the intersection of arrays
Checks if the given key or index exists in the array
Gets the first key of an array
Gets the last key of an array
Return all the keys or a subset of the keys of an array
Applies the callback to the elements of the given arrays
Merge one or more arrays recursively
Merge one or more arrays
Sort multiple or multi-dimensional arrays
Pad array to the specified length with a value
Pop the element off the end of array
Calculate the product of values in an array
Push one or more elements onto the end of array
Pick one or more random keys out of an array
Iteratively reduce the array to a single value using a callback function
Replaces elements from passed arrays into the first array recursively
Replaces elements from passed arrays into the first array
Return an array with elements in reverse order
Searches the array for a given value and returns the first corresponding key if successful
Shift an element off the beginning of array
Extract a slice of the array
Remove a portion of the array and replace it with something else
Calculate the sum of values in an array
Computes the difference of arrays with additional index check, compares data by a callback function
Computes the difference of arrays with additional index check, compares data and indexes by a callback function
Computes the difference of arrays by using a callback function for data comparison
Computes the intersection of arrays with additional index check, compares data by a callback function
Computes the intersection of arrays with additional index check, compares data and indexes by separate callback functions
Computes the intersection of arrays, compares data by a callback function
Removes duplicate values from an array
Prepend one or more elements to the beginning of an array
Return all the values of an array
Apply a user function recursively to every member of an array
Apply a user supplied function to every member of an array
Create an array
Sort an array in reverse order and maintain index association
Sort an array and maintain index association
Create array containing variables and their values
Count all elements in an array, or something in an object
Return the current element in an array
Return the current key and value pair from an array and advance the array cursor
Set the internal pointer of an array to its last element
Import variables into the current symbol table from an array
Checks if a value exists in an array
Alias of array_key_exists
Fetch a key from an array
Sort an array by key in reverse order
Sort an array by key
Assign variables as if they were an array
Sort an array using a case insensitive "natural order" algorithm
Sort an array using a "natural order" algorithm
Advance the internal pointer of an array
Alias of current
Rewind the internal array pointer
Create an array containing a range of elements
Set the internal pointer of an array to its first element
Sort an array in reverse order
Shuffle an array
Alias of count
Sort an array
Sort an array with a user-defined comparison function and maintain index association
Sort an array by keys using a user-defined comparison function
Sort an array by values using a user-defined comparison function
Quote string with slashes in a C style
Quote string with slashes
Convert binary data into hexadecimal representation
Alias of rtrim
Generate a single-byte string from a number
Split a string into smaller chunks
Convert from one Cyrillic character set to another
Decode a uuencoded string
Uuencode a string
Return information about characters used in a string
Calculates the crc32 polynomial of a string
One-way string hashing
Output one or more strings
Split a string by a string
Write a formatted string to a stream
Returns the translation table used by htmlspecialchars and htmlentities
Convert logical Hebrew text to visual text
Convert logical Hebrew text to visual text with newline conversion
Decodes a hexadecimally encoded binary string
Convert HTML entities to their corresponding characters
Convert all applicable characters to HTML entities
Convert special HTML entities back to characters
Convert special characters to HTML entities
Join array elements with a string
Alias of implode
Make a string's first character lowercase
Calculate Levenshtein distance between two strings
Get numeric formatting information
Strip whitespace (or other characters) from the beginning of a string
Calculates the md5 hash of a given file
Calculate the md5 hash of a string
Calculate the metaphone key of a string
Formats a number as a currency string
Query language and locale information
Inserts HTML line breaks before all newlines in a string
Format a number with grouped thousands
Convert the first byte of a string to a value between 0 and 255
Parses the string into variables
Output a string
Output a formatted string
Convert a quoted-printable string to an 8 bit string
Convert a 8 bit string to a quoted-printable string
Quote meta characters
Strip whitespace (or other characters) from the end of a string
Set locale information
Calculate the sha1 hash of a file
Calculate the sha1 hash of a string
Calculate the similarity between two strings
Calculate the soundex key of a string
Return a formatted string
Parses input from a string according to a format
Parse a CSV string into an array
Case-insensitive version of str_replace
Pad a string to a certain length with another string
Repeat a string
Replace all occurrences of the search string with the replacement string
Perform the rot13 transform on a string
Randomly shuffles a string
Convert a string to an array
Return information about words used in a string
Binary safe case-insensitive string comparison
Alias of strstr
Binary safe string comparison
Locale based string comparison
Find length of initial segment not matching mask
Strip HTML and PHP tags from a string
Un-quote string quoted with addcslashes
Find the position of the first occurrence of a case-insensitive substring in a string
Un-quotes a quoted string
Case-insensitive strstr
Get string length
Case insensitive string comparisons using a "natural order" algorithm
String comparisons using a "natural order" algorithm
Binary safe case-insensitive string comparison of the first n characters
Binary safe string comparison of the first n characters
Search a string for any of a set of characters
Find the position of the first occurrence of a substring in a string
Find the last occurrence of a character in a string
Reverse a string
Find the position of the last occurrence of a case-insensitive substring in a string
Find the position of the last occurrence of a substring in a string
Finds the length of the initial segment of a string consisting entirely of characters contained within a given mask
Find the first occurrence of a string
Tokenize string
Make a string lowercase
Make a string uppercase
Translate characters or replace substrings
Binary safe comparison of two strings from an offset, up to length characters
Count the number of substring occurrences
Replace text within a portion of a string
Return part of a string
Strip whitespace (or other characters) from the beginning and end of a string
Make a string's first character uppercase
Uppercase the first character of each word in a string
Write a formatted string to a stream
Output a formatted string
Return a formatted string
Wraps a string to a given number of characters
Perform a regular expression search and replace
Return array entries that match the pattern
Returns the error code of the last PCRE regex execution
Perform a regular expression match
Perform a global regular expression match
Quote regular expression characters
Perform a regular expression search and replace
Split string by a regular expression
Regular expression match
Replace regular expression
Validate a Gregorian date
Alias of DateTime::add
Alias of DateTime::createFromFormat
Alias of DateTimeImmutable::createFromFormat
Alias of DateTimeImmutable::__construct
Alias of DateTime::__construct
Alias of DateTime::setDate
Gets the default timezone used by all date/time functions in a script
Sets the default timezone used by all date/time functions in a script
Alias of DateTime::diff
Alias of DateTime::format
Alias of DateTime::getLastErrors
Alias of DateInterval::createFromDateString
Alias of DateInterval::format
Alias of DateTime::setISODate
Alias of DateTime::modify
Alias of DateTime::getOffset
Get info about given date formatted according to the specified format
Returns associative array with detailed info about given date
Alias of DateTime::sub
Returns an array with information about sunset/sunrise and twilight begin/end
Returns time of sunrise for a given day and location
Returns time of sunset for a given day and location
Alias of DateTime::setTime
Alias of DateTime::getTimestamp
Alias of DateTime::setTimestamp
Alias of DateTime::getTimezone
Alias of DateTime::setTimezone
Format a local time/date
Get date/time information
Get current time
Format a GMT/UTC date/time
Get Unix timestamp for a GMT date
Format a GMT/UTC time/date according to locale settings
Format a local time/date as integer
Get the local time
Return current Unix timestamp with microseconds
Get Unix timestamp for a date
Format a local time/date according to locale settings
Parse a time/date generated with strftime
Parse about any English textual datetime description into a Unix timestamp
Return current Unix timestamp
Alias of DateTimeZone::listAbbreviations
Alias of DateTimeZone::listIdentifiers
Alias of DateTimeZone::getLocation
Returns the timezone name from abbreviation
Alias of DateTimeZone::getName
Alias of DateTimeZone::getOffset
Alias of DateTimeZone::__construct
Alias of DateTimeZone::getTransitions
Gets the version of the timezonedb
Clears file status cache
Copies file
Checks whether a file or directory exists
Reads entire file into a string
Write data to a file
Gets last access time of file
Gets inode change time of file
Gets file size
Reads entire file into an array
Gets line from file pointer
Opens file or URL
Closes an open file pointer
Gets line from file pointer
Binary-safe file read
Binary-safe file write
Gets file group
Gets file inode
Gets file modification time
Gets file owner
Gets file permissions
Gets file type
Portable advisory file locking
Match filename against a pattern
Output all remaining data on a file pointer
Format line as CSV and write to file pointer
Alias of fwrite
Parses input from a file according to a format
Seeks on a file pointer
Gets information about a file using an open file pointer
Returns the current position of the file read/write pointer
Truncates a file to a given length
Binary-safe file write
Find pathnames matching a pattern
Tells whether the filename is a directory
Tells whether the filename is executable
Tells whether the filename is a regular file
Tells whether the filename is a symbolic link
Tells whether a file exists and is readable
Tells whether the file was uploaded via HTTP POST
Tells whether the filename is writable
Alias of is_writable
Changes group ownership of symlink
Changes user ownership of symlink
Create a hard link
Gets information about a link
Gives information about a file or symbolic link
Makes directory
Moves an uploaded file to a new location
Parse a configuration file
Parse a configuration string
Returns information about a file path
Closes process file pointer
Opens process file pointer
Outputs a file
Returns the target of a symbolic link
Get realpath cache entries
Get realpath cache size
Returns canonicalized absolute pathname
Renames a file or directory
Rewind the position of a file pointer
Removes directory
Alias of stream_set_write_buffer
Gives information about a file
Creates a symbolic link
Create file with unique file name
Creates a temporary file
Sets access and modification time of file
Changes the current umask
Deletes a file
Start of line
End of line
Start of string
End of string
Any single character
Any whitespace character
Any non-whitespace character
Any digit
Any non-digit
Any word character (letter, number, underscore)
Any non-word character
Any word boundary character
Escape character
Zero or one of a
Zero or more of a
One or more of a
Exactly 6 of a
6 or more of a
Between 6 and 8 of a
Group section
a or b
In range(a, b or c)
Any single character but a, b, or c
Any single character in the range a-z
any letter
any alphanumeric
case-insensitive
multiple lines
a dot metacharacter in the pattern matches all characters, including newlines
whitespace and commentary are ignored
ungreedy mode
Pattern and subject strings are treated as UTF-8
Day of the month(01 to 31)
Short week day name(Mon - Sun)
Day of the month(1 to 31)
Long week day name (Sunday - Saturday)
Long week day name (sunday - saturday)
the day of week (0-Sunday) to 6-Saturday)
The day of year (0 to 365)
ISO-8601 week number of year
Long month(January)
month(01 to 12)
Short month name(Jan)
month(1 through 12)
the days of month (28 to 31)
Whether it's a leap year 1 if it is a leap year, 0 otherwise.
ISO week number (W) Examples: 1999 or 2017
4 digits year(2017)
2 digits year(17)
am or pm
AM or PM
Swatch Internet time(000 to 999)
12-hour(1 - 12)
24-hour(0 - 23)
12-hour(01 - 12)
24-hour(00 - 23)
Minutes(00 to 59)
Seconds(00 through 59)
Microseconds
Milliseconds
Timezone identifier (UTC, GMT, Atlantic/Azores)
daylight saving time(1 or 0)
Difference to GMT(+0200)
Difference to GMT(+02:00)
Timezone abbreviation(EST, MDT)
ISO 8601 date(2004-02-12T15:19:21+00:00)
RFC 2822 formatted date(Thu, 21 Dec 2000 16:01:07 +0200)
Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT)
Get number of affected rows in previous MySQL operation
Returns the name of the character set
Close MySQL connection
Open a connection to a MySQL Server
Create a MySQL database
Move internal result pointer
Retrieves database name from the call to mysql_list_dbs
Selects a database and executes a query on it
Drop (delete) a MySQL database
Returns the numerical value of the error message from previous MySQL operation
Returns the text of the error message from previous MySQL operation
Escapes a string for use in a mysql_query
Fetch a result row as an associative array, a numeric array, or both
Fetch a result row as an associative array
Get column information from a result and return as an object
Get the length of each output in a result
Fetch a result row as an object
Get a result row as an enumerated array
Get the flags associated with the specified field in a result
Returns the length of the specified field
Get the name of the specified field in a result
Set result pointer to a specified field offset
Get name of the table the specified field is in
Get the type of the specified field in a result
Free result memory
Get MySQL client info
Get MySQL host info
Get MySQL protocol info
Get MySQL server info
Get information about the most recent query
Get the ID generated in the last query
List databases available on a MySQL server
List MySQL table fields
List MySQL processes
List tables in a MySQL database
Get number of fields in result
Get number of rows in result
Open a persistent connection to a MySQL server
Ping a server connection or reconnect if there is no connection
Send a MySQL query
Escapes special characters in a string for use in an SQL statement
Get result data
Select a MySQL database
Sets the client character set
Get current system status
Get table name of field
Return the current thread ID
Send an SQL query to MySQL without fetching and buffering the result rows
Absolute value
Arc cosine
Inverse hyperbolic cosine
Arc sine
Inverse hyperbolic sine
Arc tangent of two variables
Arc tangent
Inverse hyperbolic tangent
Convert a number between arbitrary bases
Binary to decimal
Round fractions up
Cosine
Hyperbolic cosine
Decimal to binary
Decimal to hexadecimal
Decimal to octal
Converts the number in degrees to the radian equivalent
Calculates the exponent of e
Returns exp(number) - 1, computed in a way that is accurate even when the value of number is close to zero
Round fractions down
Returns the floating point remainder (modulo) of the division of the arguments
Show largest possible random value
Hexadecimal to decimal
Calculate the length of the hypotenuse of a right-angle triangle
Integer division
Finds whether a value is a legal finite number
Finds whether a value is infinite
Finds whether a value is not a number
Combined linear congruential generator
Base-10 logarithm
Returns log(1 + number), computed in a way that is accurate even when the value of number is close to zero
Natural logarithm
Find highest value
Find lowest value
Show largest possible random value
Generate a random value via the Mersenne Twister Random Number Generator
Seeds the Mersenne Twister Random Number Generator
Octal to decimal
Get value of pi
Exponential expression
Converts the radian number to the equivalent number in degrees
Generate a random integer
Rounds a float
Sine
Hyperbolic sine
Square root
Seed the random number generator
Tangent
Hyperbolic tangent
Check DNS records corresponding to a given Internet host name or IP address
Close connection to system logger
Initializes all syslog related variables
Alias of checkdnsrr
Alias of getmxrr
Fetch DNS Resource Records associated with a hostname
Open Internet or Unix domain socket connection
Get the Internet host name corresponding to a given IP address
Get the IPv4 address corresponding to a given Internet host name
Get a list of IPv4 addresses corresponding to a given Internet host name
Gets the host name
Get MX records corresponding to a given Internet host name
Get protocol number associated with protocol name
Get protocol name associated with protocol number
Get port number associated with an Internet service and protocol
Get Internet service which corresponds to port and protocol
Call a header function
Remove previously set headers
Send a raw HTTP header
Returns a list of response headers sent (or ready to send)
Checks if or where headers have been sent
Get or Set the HTTP response code
Converts a packed internet address to a human readable representation
Converts a human readable IP address to its packed in_addr representation
Converts a string containing an (IPv4) Internet Protocol dotted address into a long integer
Converts an long integer address into a string in (IPv4) Internet standard dotted format
Open connection to system logger
Open persistent Internet or Unix domain socket connection
Send a cookie
Send a cookie without urlencoding the cookie value
Alias of stream_get_meta_data
Alias of stream_set_blocking
Alias of stream_set_timeout
Generate a system log message
if(condition){ //Instructions } elseif(condition){ //Instructions } else{ //Instructions }