add \n to all the value of array in php code example Example: php append element to array array_push($cart, 13);