⚙️
PHP Tools Hub
Tools
PHP
Quick
Contact
Home
>
Tutorials
>
PHP
>
PHP Cheatsheet
PHP Cheatsheet Tutorials
92 tutorials found.
📘
$_GET key
Superglobals | GET Data | PHP
📘
$var = value
Basic Syntax | Variables | PHP
📘
array or brackets
Arrays | Create Array | PHP
📘
class ClassName
OOP | Class Definition | PHP
📘
curl_init
cURL | Initialize | PHP
📘
file_get_contents
File Handling | Read File | PHP
📘
for init condition increment
Loops | for Loop | PHP
📘
function name params
Functions | Define Function | PHP
📘
if condition else
Control Structures | if else | PHP
📘
is_uploaded_file
File Upload | Check Upload | PHP
📘
json_encode
JSON | Encode JSON | PHP
📘
Match Pattern
Regular Expressions | preg_match | PHP
📘
mysqli_connect
Database | MySQLi Connect | PHP
📘
password_hash
Security | Password Hash | PHP
📘
session_start
Session | Session Start | PHP
📘
setcookie name value
Cookie | Set Cookie | PHP
📘
single or double quotes
Strings | Create String | PHP
📘
time
Date Time | Current Timestamp | PHP
📘
$_COOKIE name
Cookie | Get Cookie | PHP
📘
$_POST key
Superglobals | POST Data | PHP
📘
$_SESSION key value
Session | Set Variable | PHP
📘
All Matches
Regular Expressions | preg_match_all | PHP
📘
array key value
Arrays | Add Element | PHP
📘
curl_setopt
cURL | Set Options | PHP
📘
date format timestamp
Date Time | Format Date | PHP
📘
define NAME value
Basic Syntax | Constants | PHP
📘
file_put_contents
File Handling | Write File | PHP
📘
function name type
Functions | Return Type | PHP
📘
json_decode
JSON | Decode JSON | PHP
📘
move_uploaded_file
File Upload | Move File | PHP
📘
new ClassName
OOP | Object Creation | PHP
📘
new PDO dsn
Database | PDO Connect | PHP
📘
password_verify
Security | Password Verify | PHP
📘
strlen strpos substr
Strings | String Functions | PHP
📘
switch value case break
Control Structures | switch | PHP
📘
while condition
Loops | while Loop | PHP
📘
$_FILES error
File Upload | Get Error | PHP
📘
$_SESSION key
Superglobals | Session Data | PHP
📘
curl_exec
cURL | Execute | PHP
📘
fn param expression
Functions | Arrow Function | PHP
📘
foreach array as key value
Loops | foreach Loop | PHP
📘
htmlspecialchars
Security | Prevent XSS | PHP
📘
json_last_error
JSON | Last Error | PHP
📘
match value default
Control Structures | match | PHP
📘
mysqli_query or PDO query
Database | Query Execute | PHP
📘
public private protected
OOP | Properties | PHP
📘
Replace Pattern
Regular Expressions | preg_replace | PHP
📘
session_destroy
Session | Destroy Session | PHP
📘
setcookie name past expiry
Cookie | Delete Cookie | PHP
📘
str_replace explode implode
Strings | String Functions | PHP
📘
string int float bool array
Basic Syntax | Data Types | PHP
📘
strtotime
Date Time | Parse Date | PHP
📘
unlink
File Handling | Delete File | PHP
📘
unset array key
Arrays | Remove Element | PHP
📘
// or / / or #
Basic Syntax | Comments | PHP
📘
$_COOKIE key
Superglobals | Cookie Data | PHP
📘
bin2hex random_bytes
Security | CSRF Token | PHP
📘
curl_close
cURL | Close | PHP
📘
file_exists
File Handling | Check Exists | PHP
📘
function use vars
Functions | Anonymous Function | PHP
📘
isset array key
Arrays | Check Exists | PHP
📘
json_last_error_msg
JSON | Error Message | PHP
📘
mysqli_fetch_assoc or PDO fetch
Database | Fetch Data | PHP
📘
new DateTime
Date Time | Create DateTime | PHP
📘
public function method
OOP | Methods | PHP
📘
session_regenerate_id
Session | Regenerate ID | PHP
📘
Split by Pattern
Regular Expressions | preg_split | PHP
📘
trim strtolower strtoupper
Strings | String Functions | PHP
📘
__construct
OOP | Constructor | PHP
📘
$_SERVER key
Superglobals | Server Data | PHP
📘
bind_param or bindValue
Database | Prepared Statement | PHP
📘
count push pop shift
Arrays | Array Functions | PHP
📘
curl_error
cURL | Get Error | PHP
📘
datetime format
Date Time | DateTime Format | PHP
📘
Escape Pattern
Regular Expressions | preg_quote | PHP
📘
filesize
File Handling | Get Size | PHP
📘
Prepared Statements
Security | SQL Prevention | PHP
📘
__destruct
OOP | Destructor | PHP
📘
$_FILES key
Superglobals | Files Data | PHP
📘
curl_getinfo
cURL | Get Info | PHP
📘
filter_var
Security | Input Filter | PHP
📘
lastInsertId or insert_id
Database | Last Insert ID | PHP
📘
new DateInterval
Date Time | DateInterval | PHP
📘
extends Keyword
OOP | Inheritance | PHP
📘
new DateTimeZone
Date Time | Timezone | PHP
📘
session_regenerate_id
Security | Session Secure | PHP
📘
abstract class
OOP | Abstract Class | PHP
📘
httponly secure flags
Security | Cookie Secure | PHP
📘
interface implements
OOP | Interface | PHP
📘
trait use
OOP | Trait | PHP
📘
static method property
OOP | Static | PHP
📘
__get __set __call
OOP | Magic Methods | PHP