<?php $cesta = array("laranja", "banana", "melancia", "morango");unset($cesta[1]);print_r($cesta);$cesta[] = "novo";print_r($cesta); $novo = array_merge($cesta); print_r($novo);
Standard input is empty
Array ( [0] => laranja [2] => melancia [3] => morango ) Array ( [0] => laranja [2] => melancia [3] => morango [4] => novo ) Array ( [0] => laranja [1] => melancia [2] => morango [3] => novo )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!