How to add strings to an array php code example Example: php append element to array array_push($cart, 13);