PHP - array push
$friends = array("Watson", "Mycroft"); array_push($friends, "Sherlock"); |
PHP - array pop
$friends = array("Watson", "Mycroft"); echo array_pop($friends); # Mycroft |
Cheatography
https://cheatography.com
PHP - Helpful Cheat Sheet (DRAFT) by yamcsha
PHP helpful
This is a draft cheat sheet. It is a work in progress and is not finished yet.