Please enable JavaScript.
Coggle requires JavaScript to display documents.
Hypertext Preprocessor(PHP)
[wiki]
PHP is a popular general-purpose…
Hypertext Preprocessor(PHP)
[wiki]
- PHP is a popular general-purpose scripting language that is especially suited to web development.
Reference
- This section contains a complete PHP reference documentation.
[w3스쿨]
String Functions
- part of the PHP core. No installation is required to use these functions
[w3스쿨]
str_replace()
- Replaces some characters in a string
[w3스쿨]
strlen()
- Returns the length of a string
[w3스쿨]
ord()
- Returns the ASCII value of the first character of a string
[w3스쿨]
md5()
[w3스쿨]
- Calculates the MD5 hash of a string
-
strstr()
- Finds the first occurrence of a string inside another string (case-sensitive)
[w3스쿨]
substr()
- Returns a part of a string
[w3스쿨]
htmlentities()
- Convert some characters to HTML entities
[w3스쿨]
Array Functions
- allow you to access and manipulate arrays
[w3스쿨]
extract()
- Imports variables into the current symbol table from an array
[w3스쿨]
Filesystem
- allow you to access and manipulate the filesystem
[w3스쿨]
fopen()
- Opens a file or URL
[w3스쿨]
MySQLi
[w3스쿨]
- allows you to access MySQL database servers
fetch_array
- Fetches a result row as an associative, a numeric array, or both
-
query
[w3스쿨]
- Performs a query against a database
-
MySQL Database
- With PHP, you can connect to and manipulate databases.
[w3스쿨]
Connect to MySQL
- Before we can access data in the MySQL database, we need to be able to connect to the server
[w3스쿨]
Prepared Statements
- A prepared statement is a feature used to execute the same (or similar) SQL statements repeatedly with high efficiency.
[w3스쿨]
Tutorial
Superglobals
[w3스쿨]
- Superglobals were introduced in PHP 4.1.0, and are built-in variables that are always available in all scopes.
Types
$_POST
- 예 : $name = $_POST['fname'];
-