Show Menu
Cheatography

PHP_general Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Variables

$mycounter
1
$mystring
"­Hel­lo"
$myarray
array(­"­One­", "­Two­", "­Thr­ee")
 

Functions

if
if (условие) {...фу­нкц­ия...}
if,else
if (условие) {функция}
else {функция}
if,els­eif­,else
if (условие) {функция}
elseif (условие) {функция}
else {функция}