Welcome Guest, Not a member yet? Register   Sign In
[HELP] array_push, array_pop in codeigniter
#1

[eluser]Unknown[/eluser]
i have some problems in array,i want to add and remove value inside an array like this :

example :

$username = array ('boby','terry','lucas');


then i want to change array values like this :


$username = array('boby','terry','john','nino');



How can i do this???


Hlp me plz...
#2

[eluser]Sbioko[/eluser]
Code:
$username[2] = 'john';
$username[] = 'nino';
#3

[eluser]OliverHR[/eluser]
$users = array ('boby','terry','lucas');
$array_pop($users);
$users [] = 'john';
$users [] = 'nino';




Theme © iAndrew 2016 - Forum software by © MyBB