php add value to array index code example Example: php append element to array array_push($cart, 13);