PHP Basic

PHP, or Hypertext Preprocessor, is a widely-used open-source server-side scripting language designed for web development. It is embedded in HTML and is primarily used to develop dynamic web pages and applications. PHP code is executed on the server, generating HTML that is then sent to the client’s browser. It supports a wide range of databases and offers extensive functionality for tasks such as form handling, session management, and database interaction. PHP is known for its simplicity, ease of use, and flexibility, making it a popular choice for creating interactive and data-driven websites.

PHP Intro

1
PHP Intro
10 minutes

PHP is a popular server-side scripting language designed for web development, enabling dynamic content creation and interaction with databases.

PHP Install

1
PHP Install
10 minutes

PHP Install refers to the process of setting up the PHP scripting language on a server or local machine to run PHP code for web development.

PHP Syntax

1
PHP Syntax
10 minutes

PHP Syntax refers to the set of rules and conventions for writing code in the PHP scripting language, including the structure and format of PHP scripts.

PHP Comments

1
PHP Comments
10 minutes

PHP comments are non-executable annotations in the code, used to explain or clarify sections of the script, which can be single-line (// or #) or multi-line (/* ... */).

2
PHP Multiline Comments
10 minutes

PHP multiline comments allow you to write explanations or notes that span multiple lines, using the syntax /* comment */.

PHP Variables

1
Variables
10 minutes

Variables are named storage locations in programming that hold data values, which can be changed during the execution of a program.

2
Output Variables
3
Variable Types
4
Variables Scope
10 minutes

Variable scope refers to the context in which a variable is defined and accessible, determining where it can be used within a program.

PHP echo / print

1
PHP echo / print
10 minutes

PHP echo and print are constructs used to display output on the screen, with echo supporting multiple arguments and being faster, while print returns 1 and can only take one argument.

2
Single Quotes
3
print Statement
10

PHP Data Types

1
PHP Data Types
10 minutes

PHP data types are classifications that determine the type of data a variable can hold, including string, integer, float, boolean, array, object, NULL, and resource.

2
PHP String
3
PHP Integer
4
PHP Float
5
PHP Boolean
6
PHP Array
7
PHP Object

PHP Strings

1
PHP Strings
10 minutes

PHP strings are sequences of characters enclosed in quotes, which can include letters, numbers, and symbols.

2
Modify Strings
10 minutes

Modifying strings in PHP involves changing, replacing, or altering the content of a string using various functions and methods.

3
Concatenate Strings
10 minutes

Concatenating strings in PHP involves joining two or more strings together using the concatenation operator (.).

4
Slicing Strings
10 minutes

Slicing strings in PHP involves extracting a portion of a string using functions like substr().

5
Escape Characters
10 minutes

Escape characters are special sequences in strings that allow for the inclusion of characters that would otherwise be difficult to represent, such as newline (n), tab (t), or a backslash itself (\).

PHP Numbers

1
PHP Numbers
10 minutes

PHP numbers are data types that represent numerical values, including integers, floating-point numbers, and sometimes hexadecimal or binary literals.In this chapter, we will delve deeply into integers, floats, and numeric strings.

2
PHP Integers

PHP Casting

1
PHP Casting
10 minutes

Sometimes, you may need to change a variable from one data type to another, or you may want a variable to have a specific data type. This can be accomplished through casting.

PHP Math

1
PHP Math
10 minutes

PHP provides a set of math functions that enable you to perform mathematical operations on numbers.

PHP Constants

1
PHP Constants
10 minutes

Constants are similar to variables, but once defined, they cannot be changed or undefined.

PHP Magic Constants

1
PHP Magic Constants
10 minutes

PHP Magic Constants are predefined constants that change based on their context, such as the current file name, line number, or directory path.

PHP Operators

1
PHP Operators
10 minutes

PHP operators are symbols that perform operations on variables and values, including arithmetic, comparison, logical, and assignment operations.

PHP if...Else...Elseif

1
PHP if
10 minutes

Conditional statements are used to execute different actions depending on various conditions.

2
PHP if Operators
10 minutes

PHP if Operators are used to execute code based on a condition being true.

3
PHP if...else
10 minutes

PHP's if...else statement allows you to execute one block of code if a condition is true and another block if it's false.

4
PHP Shorthand if
10 minutes

PHP shorthand if, also known as the ternary operator, allows you to write a compact conditional statement in the form condition ? value_if_true : value_if_false.

5
PHP Nested if
10 minutes

PHP Nested if allows you to place one if statement inside another to check multiple conditions in a hierarchical manner.

PHP switch

1
PHP switch
10 minutes

The switch statement is utilized to execute various actions depending on different conditions.

PHP Loops

1
Loops
10 minutes

Loops are programming constructs that repeatedly execute a block of code as long as a specified condition is met.In the upcoming chapters, you will discover how to reuse code using loops in PHP.

2
while Loop
10 mintues

The while loop iterates through a block of code as long as the specified condition remains true.

3
do while Loop
10 minutes

The do...while loop executes a block of code once and then continues to repeat the loop as long as the specified condition is true.

4
For Loop
10 minutes

The for loop iterates through a block of code a defined number of times.

5
Foreach Loop
15 minutes

The foreach loop iterates through a block of code for each element in an array or each property in an object.

6
Break
10 minutes

The break statement can be used to exit various types of loops.

7
Continue
10 minutes

The continue statement can be used to skip the current iteration of a loop and proceed to the next one.

PHP Functions

1
PHP Functions
10 minutes

The true strength of PHP lies in its functions.It offers over 1,000 built-in functions, and you can also create your own custom functions.

2
PHP Function Arguments
3
PHP Default Argument Value
4
Returning values
5
Variable Number of Arguments
10
6
PHP Return Type Declarations

PHP Arrays

1
Arrays
10 minutes

An array contains multiple values in a single variable.

2
Indexed Arrays
10 minutes

Indexed arrays are arrays that use numeric indices to store and access their elements.

3
Associative Arrays
10 minutes

Associative arrays are arrays that use named keys to store and access their elements.

4
Create Arrays
10 minutes

Creating arrays involves defining a collection of values stored under a single variable name.

5
Access Array Item
10 minutes

Accessing an array item involves using its index or key to retrieve its value.

6
Update Array Items
10 minutes

Update Array Items" refers to the process of changing the values of specific elements within an array to new values.

7
Add Array Items
10 minutes

"Add Array Items" refers to the process of including new elements to an existing array.

8
Remove Array Item
10 minutes

"Remove Array Item" refers to the process of deleting a specific element from an existing array.

9
Sorting Arrays
10 minutes

Array elements can be sorted in alphabetical or numerical order, either in ascending or descending order.

10
Multidimensional Arrays
10 minutes

In the previous sections, we discussed arrays that consist of a single list of key/value pairs. However, sometimes you may need to store values associated with multiple keys. For this purpose, we use multidimensional arrays.

11
Array Functions
10 minutes

Array Functions" are built-in functions in programming languages that perform operations on arrays, such as sorting, searching, or modifying elements.

PHP Superglobals

1
Superglobals
10 minutes

Superglobals, introduced in PHP 4.1.0, are built-in variables that are always accessible in all scopes.

2
$GLOBALS
10 minutes

$GLOBALS is an array that holds all global variables.

3
$_SERVER
10 minutes

$_SERVER is a PHP superglobal variable that contains information about headers, paths, and script locations.

4
$_REQUEST
10 minutes

$_REQUEST is a PHP superglobal array that contains the contents of $_GET, $_POST, and $_COOKIE, allowing access to input data from various sources in a single variable.

5
$_POST
10 minutes

$_POST is a PHP superglobal array used to collect form data sent with the HTTP POST method.

6
$_GET
10 minutes

$_GET is a PHP superglobal array used to retrieve variables passed to the current script via URL parameters.

7
$_REQUEST on $_GET Requests

PHP RegEx

1
PHP RegEx
10 minutes

PHP Regular Expressions (Regex) are patterns used to match and manipulate strings based on specified rules and criteria.

PHP Form

1
PHP Form Handling
10 minutes

PHP form handling involves processing user-submitted data from HTML forms using PHP scripts, enabling interaction and data manipulation between web users and servers.

2
Form Requests
5
3
PHP Form Validation
10 minutes

PHP form validation ensures that user-submitted data meets specified criteria (e.g., required fields, correct format) to prevent errors and enhance security in web applications.

4
Form Element
10 minutes
5
Validate Form Data
10
6
$_SERVER["PHP_SELF"] Exploits
5
7
PHP Forms - Required
10 minutes

PHP Forms - Required fields ensure necessary user input for form submission and processing.

8
PHP Forms URL/E-mail
10 minutes

PHP Forms URL/E-mail validation ensures inputted data conforms to proper URL and email address formats for accuracy and security.

9
PHP Form Complete
10 minutes

Complete: Fully finished with all necessary parts or steps included.

PHP Advanced

1
PHP Date and Time
10 minutes

In PHP, you can get the current date and time with one line of code using the date function:

2
Get a Time
3
PHP Include
10 minutes

The include (or require) statement incorporates the entire content, whether it's text, code, or markup, from a specified file into the file that invokes the statement.

4
PHP File Handling
10 minutes

File handling is a crucial aspect of any web application. You frequently need to open and process files for various tasks.

5
PHP File Open/Read
10 minutes

In PHP, file operations like opening and reading are managed using functions such as fopen() and fread().

6
PHP File Create/Write
10 minutes

PHP's file create/write functions, such as fopen() with the 'w' mode, allow you to create a new file or open an existing one for writing, and fwrite() lets you write data to that file.

7
PHP File Upload
10 minutes

PHP file upload allows users to upload files from their local system to the server using an HTML form and PHP's $_FILES superglobal.

8
PHP Cookies
10 minutes

PHP cookies are used to store data on the client-side, allowing the server to retrieve and use this data across multiple requests.

9
PHP Sessions
10 minutes

PHP sessions allow you to store user information on the server for use across multiple pages of a website, maintaining state and user data persistently during a user's visit.

10
PHP Filters
10 minutes

Validating data means checking if the data is in the correct format.

Sanitizing data involves removing any illegal characters from the data.

11
PHP Filters Advanced
10 minutes

PHP filters advanced allow for complex validation and sanitization of data using custom options and flags to ensure precise control over data processing.

12
PHP Callback Functions
10 minutes

PHP callback functions are user-defined functions passed as arguments to other functions or methods, allowing for custom processing and extension of functionality.

13
PHP JSON
10 minutes

PHP and JSON interact to allow PHP scripts to encode and decode JSON data for easy data exchange and manipulation.

14
PHP Exceptions
10 minutes

PHP exceptions are used to handle errors and exceptional conditions in a program by providing a mechanism to catch and manage these issues gracefully.

15
Time Zone
10

PHP OOP

1
PHP What is OOP
10 minutes

Starting from PHP 5, you can also write PHP code using an object-oriented style.

Object-oriented programming is more efficient and easier to manage.

2
PHP OOP - Classes / Objects
10 minutes

In PHP OOP, classes define the structure and behavior of objects, while objects are instances of these classes that encapsulate data and functionality.

3
PHP Constructor
10 minutes

In PHP, the __construct function is a special method called when a new instance of a class is created, allowing for initial setup or configuration of the object.

4
PHP Destructor
10 minutes

In PHP OOP, a destructor is a special method, __destruct(), called automatically when an object is destroyed or goes out of scope, allowing for cleanup operations.

5
PHP Access Modifiers
10 minutes

In PHP, access modifiers control the visibility of class properties and methods, with public, protected, and private defining their accessibility levels.

6
PHP Inheritance
10 minutes

In PHP OOP, inheritance allows a class (subclass) to inherit properties and methods from another class (parent class), promoting code reuse and extension.

7
PHP Constants
10 minutes

In PHP, class constants are fixed values defined within a class using the const keyword, which cannot be changed once set and are accessed using the class name.

8
PHP Abstract Classes
10 minutes

In PHP OOP, an abstract class is a class that cannot be instantiated directly and is used as a base for other classes, often containing abstract methods that must be implemented by subclasses.

9
PHP Interfaces
10 minutes

In PHP OOP, an interface defines a contract that classes must adhere to by implementing the methods declared within it, without providing their implementations.

 

10
PHP Traits
10 minutes

Traits are a mechanism for code reuse in single inheritance languages like PHP, allowing the inclusion of methods in multiple classes without using inheritance.

11
PHP Static Methods
10 minutes

Static methods in PHP belong to a class rather than an instance of the class and can be called directly using the class name.

12
PHP Static Properties
10 minutes

Static properties are class variables shared among all instances of a class and can be accessed without creating an instance.

13
PHP Namespaces
10 minutes

Namespaces in PHP provide a way to encapsulate and organize code, preventing name conflicts and allowing for better code management.

14
PHP Iterables
10 minutes

In PHP, iterables are any values that can be looped over using a foreach loop, such as arrays and objects implementing the Traversable interface.

MySQL Database

1
MySQL Database
10 minutes

With PHP, you can connect to and manipulate databases. MySQL is the most widely used database system in conjunction with PHP.

2
MySQL onnect
10 minutes

In MySQL, mysqli_connect() establishes a connection to a MySQL database server. 

3
MySQL Create DB
10 minutes

The CREATE DATABASE statement in MySQL is used to create a new database. 

4
MySQL Create Table
10 minutes

The CREATE TABLE statement in MySQL is used to create a new table within a database.

5
MySQL Insert Data
10 minutes

The INSERT INTO statement in MySQL is used to add new records to a table.

6
MySQL Get Last ID
10 minutes

To get the last inserted ID, you use the LAST_INSERT_ID() function or method provided by the MySQLi or PDO library.

7
MySQL Insert Multiple
10 minutes

The INSERT INTO statement in MySQL can also be used to insert multiple rows of data in a single query.

8
MySQL Prepared
10 minutes

In MySQL, a prepared statement is a feature used to execute SQL queries efficiently and securely.

9
MySQL Select Data
10 minutes

The SELECT statement in MySQL is used to retrieve data from one or more tables in a database.

10
MySQL WHERE
10 minutes

The WHERE clause in MySQL filters records to retrieve only those that meet specified conditions.

11
MySQL ORDER BY
10 minutes

The ORDER BY clause in MySQL sorts the result set based on one or more columns.

12
MySQL Delete Data
10 minutes

The DELETE statement in MySQL removes one or more rows from a table based on a specified condition.

13
MySQL Update Data
10 minutes

The UPDATE statement in MySQL modifies existing records in a table based on specified conditions.

14
MySQL Limit Data
10 minutes

The LIMIT clause in MySQL restricts the number of rows returned by a query.

PHP XML

1
PHP XML Parsers
10 minutes

PHP XML parsers are tools used to read, manipulate, and process XML data in PHP scripts.

2
PHP SimpleXML Parser
10 minutes

The PHP SimpleXML parser provides a straightforward way to read and manipulate XML data as objects.

3
PHP SimpleXML - Get
10 minutes

PHP SimpleXML's get functionality retrieves node values from an XML document.

4
PHP XML Expat
10 minutes

PHP XML Expat is an event-driven parser that processes XML data by triggering events as it encounters various XML elements.

5
PHP XML DOM
10 minutes

The built-in DOM parser enables XML document processing in PHP.

PHP Reference

1
PHP Array
10 minutes

Define an array in PHP using the array() function or the short array syntax [].

2
array()
10 minutes

The array() function in PHP is used to create an array.

3
array_change_key_case()
10 minutes

Define a multidimensional array:

4
array_chunk()
10 minutes

The array_chunk() function splits an array into chunks of a specified size.

5
array_column()
10 minutes

The array_column() function retrieves values from a specific column in a multidimensional array.

6
array_combine()
10 minutes

The array_combine() function creates an array by using one array for keys and another for its values.

7
array_count_values()
10 minutes

The array_count_values() function counts the occurrences of each value in an array and returns an associative array.

8
array_diff()
10 minutes

The array_diff() function compares arrays and returns the values from the first array that are not present in the other arrays.

9
array_diff_assoc()
10 minutes

The array_diff_assoc() function compares arrays and returns the differences, including both values and keys.

10
array_diff_key()
10 minutes

The array_diff_key() function compares arrays and returns the differences based on the keys only.

11
array_diff_uassoc()
10 minutes

The array_diff_uassoc() function compares arrays based on both keys and values using a user-defined callback function, returning the differences.

12
array_diff_ukey()
10 minutes

Compare the keys and values of three arrays using a user-defined function to compare the keys, and return the differences.

13
array_fill()
10 minutes

The array_fill() function fills an array with a specified value, starting at a given index and for a specified length.

14
array_fill_keys()
10 minutes

The array_fill_keys() function creates an array with specified keys, all assigned the same value.

15
array_filter()
10 minutes

The array_filter() function filters elements of an array using a callback function.

16
array_flip()
10 minutes

The array_flip() function exchanges all keys and values in an array.

17
array_intersect()
10 minutes

The array_intersect() function returns an array containing all the values that are present in all of the given arrays.

18
array_intersect_assoc()
10 minutes

The array_intersect_assoc() function returns an array containing values and keys that are present in all of the given arrays.

19
array_intersect_key()
10 minutes

The array_intersect_key() function returns an array containing all the entries from the first array that have matching keys in all other arrays.

20
array_intersect_uassoc()
10 minutes

The array_intersect_uassoc() function compares arrays and returns the matches, using a user-defined callback function to compare the keys and values.

21
array_intersect_ukey()
10 minutes

The array_intersect_ukey() function compares the keys of two or more arrays using a user-defined function, and returns the matching entries.

22
array_key_exists()
10 minutes

The array_key_exists() function checks if a given key exists in an array.

23
array_keys()
10 minutes

The array_keys() function in PHP returns all the keys or a subset of the keys of an array.

24
array_map()
10 minutes

The array_map() function applies a callback to each element of one or more arrays and returns an array with the modified elements.

25
array_merge()
10 minutes

The array_merge() function combines the elements of two or more arrays into one array.

26
array_merge_recursive()
10 minutes

The array_merge_recursive() function merges one or more arrays into one array, recursively combining values with the same keys.

27
array_multisort()
10 minutes

The array_multisort() function sorts multiple or multidimensional arrays simultaneously.

28
array_pad()
10 minutes

The array_pad() function returns a new array with a specified number of elements, padding the original array with a given value.

29
array_pop()
10 minutes

The array_pop() function removes and returns the last element from an array.

30
array_product()
10 minutes

The array_product() function calculates and returns the product of all the values in an array.

31
array_push()
10 minutes

The array_push() function adds one or more elements to the end of an array.

32
array_rand()
10 minutes

The array_rand() function selects one or more random keys from an array.

33
array_reduce()
10 minutes

The array_reduce() function iteratively reduces an array to a single value using a callback function.

34
array_replace()
10 minutes

array_replace() is a PHP function that replaces the values of the first array with the values from subsequent arrays based on matching keys.

35
array_replace_recursive()
10 minutes

array_replace_recursive() is a PHP function that recursively replaces values in the first array with values from subsequent arrays based on matching keys.

36
array_reverse()
10 minutes

array_reverse() is a PHP function that returns an array with its elements in reverse order.

37
array_search()
10 minutes

array_search() is a PHP function that searches for a value in an array and returns the corresponding key if the value is found.

38
array_shift()
10 minutes

array_shift() is a PHP function that removes the first element from an array and returns it, shifting all other elements down by one position.

39
array_slice()
10 minutes

array_slice() is a PHP function that extracts a portion of an array, returning a new array containing the specified elements.

40
array_splice()
10 minutes

array_splice() is a PHP function that removes and/or replaces elements from an array, and optionally inserts new elements at a specified position.

41
array_sum()
10 minutes

array_sum() is a PHP function that calculates and returns the sum of all values in an array.

42
array_udiff()
10 minutes

The array_udiff() function in PHP compares array values using a user-defined callback function and returns the differences between the arrays.

43
array_udiff_assoc()
10 minutes

The array_udiff_assoc() function in PHP compares the values and keys of two or more arrays using a user-defined callback function and returns the differences.

44
array_udiff_uassoc()
10 minutes

The array_udiff_uassoc() function in PHP compares the values and keys of two or more arrays using user-defined callback functions for both values and keys and returns the differences.

45
array_uintersect()
10 minutes

The array_uintersect() function in PHP compares the values of two or more arrays using a user-defined callback function and returns the common values.

46
array_uintersect_assoc()
10 minutes

The array_uintersect_assoc() function compares both the keys and values of two or more arrays using user-defined functions and returns the entries that are present in all of the arrays.

47
array_uintersect_uassoc()
10 minutes

The array_uintersect_uassoc() function in PHP compares both the keys and values of two or more arrays using user-defined callback functions for both, and returns the common entries.

48
array_unique()
10 minutes

The array_unique() function in PHP removes duplicate values from an array and returns an array with only unique values.

49
array_unshift()
10 minutes

The array_unshift() function in PHP adds one or more elements to the beginning of an array and returns the new number of elements in the array.

50
array_values()
10 minutes

The array_values() function in PHP returns all the values from an array and indexes them numerically.

51
array_walk()
10 minutes

The array_walk() function in PHP applies a user-defined callback function to each element of an array.

52
array_walk_recursive()
10 minutes

The array_walk_recursive() function in PHP applies a user-defined callback function to each element of a multidimensional array.

53
arsort()
10 minutes

The arsort() function in PHP sorts an array in descending order while maintaining the association between keys and values.

54
asort()
10 minutes

The asort() function in PHP sorts an associative array in ascending order by value while maintaining key-value associations.

55
compact()
10 minutes

The compact() function in PHP creates an array from variables and their values.

56
count()
10 minutes

The count() function in PHP returns the number of elements in an array or properties of an object.

57
current()
10 minutes

The current() function in PHP returns the current element of an array.

58
each()
10 minutes

The each() function returns the current key and value pair from an array and advances the internal pointer forward.

59
end()
10 minutes

The end() function moves the internal pointer to the last element of an array and returns its value.

60
extract()
10 minutes

The extract() function imports variables from an array into the current symbol table.

61
in_array()
10 minutes

The in_array() function checks if a value exists in an array.

62
key()
10 minutes

The key() function returns the key of the current element in an array.

63
krsort()
10 minutes

The krsort() function sorts an associative array in descending order by key.

64
ksort()
10 minutes

Sort an associative array in ascending order, according to the key.

65
list()
10 minutes

Assign values to a list of variables in one operation.

66
natcasesort()
10 minutes

The natcasesort() function sorts an array using a natural order algorithm in a case-insensitive manner.

67
natsort()
10 minutes

Sort an array using a natural order algorithm, keeping the original keys.

68
next()
10 minutes

In Python, the next() function retrieves the next item from an iterator. 

69
pos()
10 minutes

In PHP, the pos() function (an alias of current()) returns the value of the current element in an array.

70
prev()
5 minutes

In PHP, the prev() function moves the internal pointer to the previous element in the array and returns its value.

71
range()

In PHP, the range() function creates an array containing a range of elements, from a specified start value to an end value.

72
reset()
10 minutes

In PHP, the reset() function moves the internal pointer of an array to the first element and returns its value.

73
rsort()
10 minutes

In PHP, the rsort() function sorts an array in reverse order.

74
shuffle()
10 minutes

In PHP, the shuffle() function randomly rearranges the elements of an array.

75
sizeof()
5 minutes

In PHP, the sizeof() function returns the number of elements in an array or the length of a countable object.

76
sort()
10 minutes

The sort() function arranges the elements of an array in ascending order.

77
uasort()
10 minutes

In PHP, the uasort() function sorts an array by values using a user-defined comparison function, while maintaining the original keys.

78
uksort()
10 minutes

In PHP, the uksort() function sorts an array by its keys using a user-defined comparison function, preserving the key-value associations.

79
usort()
10 minutes

In PHP, the usort() function sorts an array by its values using a user-defined comparison function and does not preserve key-value associations.

80
PHP Calendar
10 minutes

PHP's Calendar extension provides functions for working with dates and times, including operations for various calendar systems and date formatting.

81
cal_days_in_month()
10 minutes

The cal_days_in_month() function returns the number of days in a specified month of a given calendar.

82
cal_from_jd()
10 minutes

The cal_from_jd() function converts a Julian Day Count to a date in a specified calendar system.

83
cal_info()
10 minutes

The cal_info() function returns an array containing information about a specified calendar.

84
cal_to_jd()
10 minutes

The cal_to_jd() function converts a date from a specified calendar to a Julian Day Count.

85
easter_date()
10 minutes

To define a one-liner function for calculating the date of Easter in Python.

86
easter_days()
10 minutes

To define a one-liner function for calculating the number of days until Easter in Python.

87
frenchtojd()
10 minutes

The frenchtojd() function converts a French Republican calendar date to a Julian Day Count.

88
gregoriantojd()
10 minutes

The gregoriantojd() function converts a Gregorian calendar date to a Julian Day Count.

89
jddayofweek()
10 minutes

The jddayofweek() function returns the day of the week for a given Julian Day Number.

90
jdmonthname()
10 minutes

The jdmonthname() function returns the name of a specified month for a given Julian Day Number.

91
jdtofrench()
10 minutes

The jdtofrench() function converts a Julian Day Number to a French Republican calendar date.

92
jdtogregorian()
10 minutes

The jdtogregorian() function converts a Julian Day Number to a Gregorian calendar date.

93
jdtojewish()
10 minutes

The jdtojewish() function converts a Julian Day Number to a Jewish calendar date.

94
jdtojulian()
10 minutes

The jdtojulian() function converts a Julian Day Number to a Julian calendar date.

95
jdtounix()
10 minutes

The jdtounix() function converts a Julian Day Number to a Unix timestamp.

96
jewishtojd()
10 minutes

The jewishtojd() function converts a Jewish calendar date to a Julian Day Number.

97
juliantojd()
10 minutes

The juliantojd() function converts a Julian calendar date to a Julian Day Number.

98
unixtojd()
10 minutes

The unixtojd() function converts a Unix timestamp to a Julian Day Number.

99
PHP Date
10 minutes

The PHP date() function formats a Unix timestamp into a human-readable date and time string.

100
checkdate()
10 minutes

The checkdate() function in PHP is used to validate a Gregorian calendar date.

101
date_add()
10 minutes

The date_add() function in PHP adds an interval to a given DateTime object and returns the resulting date.

102
date_create_from_format()
10 minutes

The date_create_from_format() function in PHP creates a DateTime object from a specified format and string.

103
date_create()
10 minutes

The date_create() function in PHP creates a new DateTime object from a specified date/time string and optional timezone.

104
date_date_set()
10 minutes

The date_date_set() function in PHP sets the date of a DateTime object to a specified year, month, and day.

105
date_default_timezone_get()
10 minutes

The date_default_timezone_get() function in PHP retrieves the default timezone used by all date/time functions.

106
date_default_timezone_set()
10 minutes

The date_default_timezone_set() function in PHP sets the default timezone for all date/time functions.

107
date_diff()
10 minutes

The date_diff() function in PHP calculates the difference between two DateTime objects and returns a DateInterval object.

108
date_format()
10 minutes

The date_format() function in PHP formats a DateTime object according to a specified format string.

109
date_get_last_errors()
10 minutes

Returns the formatted date as a string; FALSE on failure.

110
date_interval_create_from_date_string()
10 minutes

The date_interval_create_from_date_string() function in PHP creates a DateInterval object from a date interval specification in string format.

111
date_interval_format()
10 minutes

The date_interval_format() function in PHP formats a DateInterval object according to a specified format string.

112
date_isodate_set()
10 minutes

The date_isodate_set() function in PHP sets the year, month, and day of a DateTime object using ISO 8601 format.

113
date_modify()
10 minutes

The date_modify() function in PHP modifies a DateTime object by adding or subtracting a specified interval.

114
date_offset_get()
10 minutes

The date_offset_get() function in PHP returns the timezone offset of a DateTime object in seconds.

115
date_parse_from_format()
10 minutes

The date_parse_from_format() function in PHP parses a date/time string according to a specified format and returns an associative array with date and time information.

116
date_parse()
10 minutes

The date_parse() function in PHP parses a date/time string and returns an associative array with detailed information about the date and time components.

117
date_sub()
10 minutes

The date_sub() function in PHP subtracts a specified interval from a DateTime object.

118
date_sun_info()
10 minutes

The date_sun_info() function in PHP returns an associative array with information about sunrise, sunset, and solar noon for a given date and location.

119
date_sunrise()
10 minutes

The date_sunrise() function in PHP returns the sunrise time for a given date and location.

120
date_sunset()
10 minutes

The date_sunset() function in PHP returns the sunset time for a specified date and location.

121
date_time_set()
10 minutes

The date_time_set() function sets the time for a DateTime object.

122
date_timestamp_get()
10 minutes

Retrieve the Unix timestamp from a DateTime object.

123
date_timestamp_set()
10 minutes

Set the Unix timestamp:

124
date_timezone_get()
10 minutes

Returns the timezone of a DateTime object.

125
date_timezone_set()
10 minutes

Sets the timezone for a DateTime object.

126
date()
10 minutes

The date() function in PHP returns the current date and time, formatted according to the specified format string. 

127
getdate()
10 minutes

getdate() returns an associative array containing the date and time information of a given timestamp or the current local time if no timestamp is provided.

128
gettimeofday()
10 minutes

The gettimeofday() function returns an associative array containing the current time, including seconds, microseconds, and timezone information.

129
gmmktime()
10 minutes

The gmmktime() function returns the Unix timestamp for a specified GMT/UTC date and time.

130
gmstrftime()
10 minutes

The gmstrftime() function formats a GMT/UTC date and time according to a specified format string.

131
idate()
10 minutes

The idate() function returns a specific component of a Unix timestamp as an integer.

132
localtime()
10 minutes

localtime(): Returns an associative array containing local time information for a given timestamp or the current local time.

133
microtime()
10 minutes

The microtime() function returns the current Unix timestamp with microseconds as a string.

134
mktime()
10 minutes

The mktime() function returns a Unix timestamp for a specified date and time.

135
strftime()
10 minutes

The strftime() function formats a local time/date according to locale settings.

136
strptime()
10 minutes

The strptime() function parses a date/time string according to a specified format and returns an associative array with the parsed values.

137
strtotime()
10 minutes

The strtotime() function in PHP parses a time string and returns the equivalent Unix timestamp.

138
time()
10 minutes

The time() function in PHP returns the current Unix timestamp (the number of seconds since January 1, 1970, 00:00:00 GMT).

139
timezone_abbreviations_list()
10 minutes

The timezone_abbreviations_list() function in PHP returns an array of all timezone abbreviations and their corresponding timezone information.

140
timezone_identifiers_list()
10 minutes

The timezone_identifiers_list() function in PHP returns an array of all supported timezone identifiers.

141
timezone_location_get()
10 minutes

The timezone_location_get() function in PHP retrieves the geographical location information for a given DateTimeZone object.

142
timezone_name_from_abbr()
10 minutes

The timezone_name_from_abbr() function in PHP returns the full timezone name corresponding to a given abbreviation.

143
timezone_name_get()
10 minutes

The timezone_name_get() function in PHP retrieves the name of the timezone from a given DateTimeZone object.

144
timezone_offset_get()
10 minutes

The timezone_offset_get() function in PHP returns the timezone offset from UTC for a given DateTime object and DateTimeZone object.

145
timezone_open()
10 minutes

The timezone_open() function in PHP creates a new DateTimeZone object for a specified timezone.

146
timezone_transitions_get()
10 minutes

The timezone_transitions_get() function in PHP retrieves an array of transition information for a given DateTimeZone object.

147
timezone_version_get()
10 minutes

The timezone_version_get() function in PHP returns the version of the timezone database currently in use.

148
PHP Directory
10 minutes

The PHP Directory class provides methods for interacting with file system directories.

149
chdir()
10 minutes

The chdir() function in PHP changes the current working directory to the specified path.

150
chroot()
10 minutes

The chroot() function changes the root directory for the current running process to a specified path.

151
closedir()
10 minutes

The closedir() function in PHP closes an open directory handle.

152
dir()
10 minutes

The dir() function in PHP creates a Directory object for the specified path, allowing directory operations.

153
getcwd()
10 minutes

The getcwd() function in PHP returns the current working directory as a string.

154
opendir()
10 minutes

The opendir() function in PHP opens a directory and returns a directory handle resource.

155
readdir()
10 minutes

The readdir() function reads the next entry from an open directory handle.

156
rewinddir()
10 minutes

The rewinddir() function resets the directory handle to the beginning of the directory.

157
scandir()
10 minutes

The scandir() function in PHP returns an array of filenames and directory names from a specified directory.

158
Error Functions
10 minutes

Error functions in PHP handle error reporting, logging, and management for code execution.

159
debug_backtrace()
10 minutes

The debug_backtrace() function provides an array of information about the call stack at the point where it is invoked.

160
error_get_last()
10 minutes

The error_get_last() function in PHP retrieves the last error that occurred.

161
error_log()
10 minutes

The error_log() function in PHP sends an error message to the server's error log or to a file.

162
error_reporting()
10 minutes

The error_reporting() function in PHP sets the level of error reporting, determining which types of errors are displayed or logged.

163
restore_error_handler()
10 minutes

The restore_error_handler() function in PHP restores the previous error handler.

164
restore_exception_handler()
10 minutes

The restore_exception_handler() function restores the previous exception handler.

165
set_error_handler()
10 minutes

The set_error_handler() function sets a user-defined function to handle errors.

166
set_exception_handler()
10 minutes

The set_exception_handler() function sets a user-defined function to handle uncaught exceptions.

167
trigger_error()
10 minutes

The trigger_error() function generates a user-level error message.

168
PHP Exception
10 minutes

A PHP Exception is an object representing an error or exceptional condition in a script, which can be caught and handled with a try-catch block.

169
Exception()

An Exception in PHP represents an error or exceptional condition that can be caught and handled using try-catch blocks.

170
getCode()
10 minutes

The getCode() method returns the exception code associated with the Exception object.

171
getFile()
10 minutes

The getFile() method returns the file path where the exception was thrown.

172
getMessage()
10 minutes

The getMessage() method returns the error message associated with the exception.

173
getLine()
10 minutes

The getLine() method returns the line number where the exception was thrown.

174
getPrevious()
10 minutes

The getPrevious() method retrieves the previous exception that caused the current exception.

175
getTrace()
10 minutes

The getPrevious() method retrieves the previous exception that caused the current exception.

176
getTraceAsString()
10 minutes

The getTraceAsString() method returns the stack trace as a formatted string.

177
PHP Filesystem
10 minutes

PHP Filesystem allows for file and directory manipulation, including reading, writing, and managing files and directories.

178
basename()

The basename() function in PHP returns the filename from a given path, removing any leading directory components. For example, basename('/path/to/file.txt') returns 'file.txt'.

179
chgrp()
10 minutes

The chgrp() function in PHP changes the group ownership of a specified file or directory.

180
chmod()
10 minutes

The chmod() function in PHP changes the file permissions of a specified file or directory.

181
chown()
10 minutes

The chown() function in PHP changes the owner of a specified file or directory.

182
clearstatcache()
10 minutes

clearstatcache() is a PHP function that clears the file status cache.

183
copy()
10 minutes

The copy() function in PHP duplicates a file from a source to a destination.

184
delete()
10 minutes

The delete() function in PHP removes a file or directory.

185
dirname()
10 minutes

The dirname() function in PHP returns the directory path of a specified file or directory.

186
disk_free_space()
10 minutes

The disk_free_space() function in PHP returns the amount of free space available on a specified disk or directory.

187
disk_total_space()
10 minutes

The disk_total_space() function in PHP returns the total size of the specified filesystem or disk in bytes.

188
diskfreespace()
10 minutes

diskfreespace() is an older alias for the disk_free_space() function in PHP. It returns the amount of free space available on a specified disk or directory.

189
fclose()
10 minutes

The fclose() function in PHP closes an open file pointer.

190
feof()

The feof() function in PHP checks if the end-of-file (EOF) has been reached for an open file pointer.

191
fflush()
10 minutes

The fflush() function in PHP flushes the output buffer of an open file pointer.

192
fgetc()
10 minutes

The fgetc() function in PHP reads a single character from an open file pointer.

193
fgetcsv()
10 minutes

The fgetcsv() function in PHP parses a line from an open file pointer as a CSV (comma-separated values) and returns it as an array.

194
fgets()
10 minutes

The fgets() function in PHP reads a line from an open file pointer.

195
fgetss()
10 minutes

The fgetss() function in PHP reads a line from an open file, stripping HTML and PHP tags.

196
file()
10 minutes

The file() function in PHP reads a file into an array, with each line as an array element.

197
file_exists()
10 minutes

The file_exists() function in PHP checks if a specified file or directory exists.

198
file_get_contents()
10 minutes

The file_get_contents() function in PHP reads the entire content of a file into a string.

199
file_put_contents()
10 minutes

The file_put_contents() function in PHP writes data to a file, creating the file if it doesn't exist or overwriting it if it does.

200
fileatime()
10 minutes

The fileatime() function in PHP returns the last access time of a specified file.

201
filegroup()
10 minutes

The filegroup() function in PHP returns the group ID of the specified file.

202
fileinode()
10 minutes

The fileinode() function in PHP returns the inode number of the specified file.

203
filemtime()
10 minutes

The filemtime() function returns the last time the file content was modified. 

204
fileowner()
10 minutes

The fileowner() is an inbuilt function in PHP that returns the details for the file owner.

205
fileperms()
10 minutes

The fileperms() function in PHP is an inbuilt function which is used to return the permissions given to a file or a directory.

206
filesize()
10 minutes

The filesize() function in PHP is an inbuilt function which is used to return the size of a specified file.

207
filetype()
10 minutes

A file type is usually identified by the file extension and the applications associated with the file. 

208
fnmatch()
10 minutes

fnmatch() checks if the passed filename would match the given shell wildcard pattern.

209
fopen()
10 minutes

The fopen() function opens the file specified by filename and associates a stream with it. 

210
fpassthru()
10 minutes

 The fpassthru() function reads from the current position in a file - until EOF, and then writes the result to the output buffer.

211
fputcsv()
10 minutes

fputcsv() formats a line (passed as a fields array) as CSV and writes it (terminated by a newline) to the specified file stream .

212
fputs()
10 minutes

fputs() is a standard C library function that is used to write a string of characters to a file at the location indicated by the file pointer.

213
fread()
10 minutes

The fread() function reads up to count items of size length from the input stream and stores them in the given buffer.

214
fscanf()
10 minutes

The fscanf() function reads data from the current position of the specified stream into the locations that are given by the entries in argument-list, if any.

215
fseek()
10 minutes

The fseek() function seeks in an open file. 

216
fstat()
10 minutes

The fstat() function returns information about an open file.

217
ftell()
10 minutes

ftell returns the current position of the file read/write pointer

218
ftruncate()
10 minutes

The ftruncate() function truncates a file to the specified length.

219
fwrite()
10 minutes

The fwrite() function is used to write to a file.

220
glob()
10 minutes

The glob() function searches for all the pathnames matching pattern according to the rules used by the libc glob() function

221
is_dir()
10 minutes

The is_dir() function checks whether the specified filename is a directory.

222
is_executable()
10 minutes

This function returns the value for the process PHP is executing under. /var/somebody/files was only executable by owner (700).

223
is_file()
10 minutes

Returns true if the filename exists and is a regular file, false otherwise.

224
is_link()
10 minutes

The is_link() function checks whether the specified filename is a symbolic link.

225
is_readable()
10 minutes

The is_readable() function checks whether the specified filename is readable.

226
is_uploaded_file()
10 minutes

File upload in PHP allows you to upload files with different extensions to the server.

227
is_writable()
10 minutes

The is_writable() function checks whether the specified filename is writable.

228
is_writeable()
10 minutes

The is_writable() function checks whether the specified filename is writable.

229
lchgrp()
10 minutes

The chgrp() function changes the usergroup of the specified file.

230
lchown()
10 minutes

The lchown() function changes the user ownership of a symbolic link. 

231
link()
10 minutes

A hard connection is created for a given target using the link() function.

232
linkinfo()
10 minutes

The linkinfo() function returns information about a hard link, and is used to verify if a link really exists.

233
lstat()
10 minutes

The information about a file or symbolic link is returned by the lstat() function.

234
mkdir()
10 minutes

The mkdir() function creates a directory specified by a pathname. Syntax. mkdir(path, mode, recursive, context).

235
move_uploaded_file()
10 minutes

An uploaded file is moved to a new location using the move_uploaded_file() function. 

236
parse_ini_file()
10 minutes

parse_ini_file() loads in the ini file specified in filename , and returns the settings in it in an associative array.

237
parse_ini_string()
10 minutes

The parse_ini_file() function parses a configuration (ini) string and returns the settings.

238
pathinfo()
10 minutes

The parse_ini_file() function parses a configuration (ini) string and returns the settings.

239
pclose()
10 minutes

The pclose() function closes a pipe opened by popen().

240
popen()
10 minutes

popen() in PHP opens a pipe to a process, allowing you to execute a shell command and read or write to that process.

241
readfile()
10 minutes

The readfile() function in PHP reads a file and outputs its contents directly to the browser.

242
readlink()
10 minutes

The v function in PHP is not a standard function. Could you clarify what you mean by v? If you're referring to a specific function or feature, please provide more details.

243
realpath()
10 minutes

The realpath() function in PHP returns the canonical absolute path of a given file or directory.

244
realpath_cache_get()
10 minutes

The realpath_cache_get() function in PHP retrieves the realpath cache information for a given directory.

245
realpath_cache_size()
10 minutes

The realpath_cache_size() function in PHP returns the amount of memory used by the realpath cache.

246
rename()
10 minutes

The rename() function in PHP renames or moves a file or directory.

247
rewind()
10 minutes

The rewind() function in PHP resets the file pointer to the beginning of a file or stream.

248
rmdir()
10 minutes

The rmdir() function in PHP removes an empty directory.

249
set_file_buffer()
10 minutes

The set_file_buffer() function in PHP sets the buffer size for file handling operations.

250
stat()
10 minutes

The stat() function in PHP retrieves information about a file or directory, such as its size, permissions, and modification time.

251
symlink()
10 minutes

The symlink() function in PHP creates a symbolic link to a specified file or directory.

252
tempnam()
10 minutes

The tempnam() function in PHP creates a unique temporary file with a specified prefix.

253
tmpfile()
10 minutes

The tmpfile() function in PHP creates a temporary file with a unique name and returns a file handle to it.

254
touch()
10 minutes

The touch() function in PHP sets the access time and modification time of a file, or creates the file if it doesn't exist.

255
umask()
10 minutes

The umask() function in PHP sets or gets the default permissions mask for newly created files and directories.

256
unlink()
10 minutes

The unlink() function in PHP deletes a file.

257
PHP Filter
10 minutes

PHP filters are used to validate and sanitize input data.

258
filter_has_var()
10 minutes

Determines if a specified input variable of a given type exists.

259
filter_id()
10 minutes

Returns the filter ID for a given filter name.

260
filter_input()
10 minutes

Retrieves an external variable (e.g., from form input) and optionally applies a filter to it.

261
filter_input_array()
10 minutes

Retrieve and optionally filter multiple external variables (e.g., from form input) as an array.

262
filter_list()
10 minutes

filter_list() is a PHP function that returns an array of all supported filters, which can be used with the filter_var() and filter_input() functions.

263
filter_var()
10 minutes

filter_var() is a PHP function used to filter a variable with a specified filter and optionally sanitize or validate it.

264
filter_var_array()
10 minutes

filter_var_array() is a PHP function that filters multiple variables according to the specified filters and options.

265
PHP FTP
10 minutes

PHP FTP is a set of functions in PHP for interacting with FTP servers to perform file transfers and other FTP-related operations.

266
ftp_alloc()
10 minutes

ftp_alloc() is a PHP function that allocates space for a file to be uploaded to an FTP server.

267
ftp_cdup()
10 minutes

ftp_cdup() is a PHP function that changes the current directory to the parent directory on the FTP server.

268
ftp_chdir()
10 minutes

ftp_chdir() is a PHP function that changes the current directory on the FTP server.

269
ftp_chmod()
10 minutes

ftp_chmod() is a PHP function that sets permissions on a file or directory on the FTP server.

270
ftp_close()
10 minutes

ftp_close() is a PHP function that closes an FTP connection.

271
ftp_connect()
10 minutes

ftp_connect() is a PHP function that establishes a connection to an FTP server.

272
ftp_delete()
10 minutes

ftp_delete() is a PHP function that removes a file from the FTP server.

273
ftp_exec()
10 minutes

ftp_exec() is a PHP function that sends a raw command to the FTP server for execution.

274
ftp_fget()
10 minutes

ftp_fget() is a PHP function that downloads a file from the FTP server and saves it to an open file stream.

275
ftp_fput()
10 minutes

ftp_fput() is a PHP function that uploads data from an open local file to a file on the FTP server.

276
ftp_get()
10 minutes

ftp_get() is a PHP function that downloads a file from the FTP server and saves it to a local file.

Be the first to add a review.

Please, login to leave a review
Get course
Enrolled: 346 students
Lectures: 402
Level: Beginner

Archive

Working hours

Monday 9:30 am - 6.00 pm
Tuesday 9:30 am - 6.00 pm
Wednesday 9:30 am - 6.00 pm
Thursday 9:30 am - 6.00 pm
Friday 9:30 am - 5.00 pm
Saturday Closed
Sunday Closed
PHP Basic
Category: