Show Menu
Cheatography

PHP - Helpful Cheat Sheet (DRAFT) by

PHP helpful

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

PHP - array push

int array_push ( array &$­array , mixed $var [, mixed $... ] )
$friends = array(­"­Wat­son­", "­Myc­rof­t");
array_­pus­h($­fri­ends, "­She­rlo­ck");
 

PHP - array pop

pop function
$friends = array(­"­Wat­son­", "­Myc­rof­t");
echo array_­pop­($f­rie­nds); # Mycroft